Professional Documents
Culture Documents
----------------------------------------------------------------------------------Video 04_06:
Show Message Window:
UIALertView : initWithTitle
[myAlert show]
Hit Home Button : then app is not killed, but paused?
----------------------------------------------------------------------------------main.m
UIApplicationMain(argc, argv, nil, delegate);
//delegate is AppDel
egate.m
UIApplicationMain() : Pass Delegate
---->
---->
othing is visible yet
---->
---->
espan of the app
---->
---->
UIApplication
Calls Primary UI file (Storyboard/xib) : n
Calls your app delegate
UIWindow : transparent, exists for the lif
Loads View Controller into the UIWindow
Utility App : With a flip view : IOS 7 moved away from this style
Empty Appl.
OpenGL & SpriteKit
------------------------------------------------------------------------------------------------------------------------------Do a SingleViewApplication first. Check out the Exercise files
------------------------------------------------------------------------------------------------------------------------------DatePicker or Picket : Connect a DataSource and Delegate for handling the select
Row etc
Use UIDatePicker Protocols for defining these.
- Connect
------------------------------------------------------------------------------------------------------------------------------DatePicker example :
Connect DatePicker as Outlet and Button as Action
An Outlet also lets you access to a control(read, write)
NSDate *Chosen = [self.datePicker date];
// EEEE represents date of the week in full ie., Monday etc
NSDateFormatter has setDateFormatter:@"EEEE"
//100s of different formats
------------------------------------------------------------------------------------------------------------------------------- define a property in .h and it becomes a public variable
- define a property in .m and it becomes a private variable
------------------------------------------------------------------------------------------------------------------------------- Practice arrays and different ways to use them
------------------------------------------------------------------------------------------------------------------------------TableView Notes:
Using Plist file and load the values into the table view.
Copy the plist from mac dir to the Xcode Project Supporting files.
Loading the Plist into runtime use:
In viewDidLoad:
NSDictionary* : It is not a 0 based data structure.
NSURL and NSBundle
- urlForResource
- Use the URL to make the NSDictionary??
NSDictionary dictionaryWithContentsOfURL
NSDictionary allKeys
Protocoal Methods to Implement :
- numberOfRowsInSection()
- cellForRowAtIndexPath()
declare variable of type UITAbleViewCell
Call dequeueCellForReuseCellWithIdentifier
- Efficient way to dequeue any cell
- Provide one cell to implement scrolling and resuing cells.
Utilities Panel. Attribute details inspector on RHS. In 'Prototype Cell' use
value 1
Identifier : 'cell' (same as in code)
------------------------------------------------------------------------------------------------------------------------------- Default Multi View template app has both Nav. Controller and
- Every method has a description method.