2012年5月28日 星期一

Storyboard use in iOS

Storyboard feature only can use in up iOS5.0, The ARC feature also only use in up iOS5.0

Note :

1. The View controller in storyboard that need use a class file to handle it.

The class name need to connect to the storyboard view controller. ref up picture.


2.When return to up view can not use modal to recall original view controller. because the original view controller did not dismiss. that only be over view in this new view controller. so need to use method of

 [self dismissModalViewControllerAnimated:YES];
for return to original view controller.


3.The methods of view controller will can be used in new class for the UIViewController. you can find this method in the new files.



Other note is use for class use in iOS, if you use the method is -(void) ..... that is an instance classe method then when you want to use it that need to declare the class for an initial.



if you use the method is +(void)..... that is class method then when you want to use it that can direct to use [classname classmethod : parameters];  this is big difference from the instance class.

=== the global variable use in iOS that can not use static variable === 
=== the extern variable can not be used static in iOS                     === 


沒有留言:

張貼留言