I know the general system calls himself shouldAutorotateToInterfaceOrientation this function, I have set to return YES;, but did not work, and there are already tracking this function to enter the program is running, do not know why?
Then found out this function willAnimationRotationToInterfaceOrientation, said to be called in the simulator rotate on their own time, but the track did not enter into the program this function, swollen do not know?
Small problem:
For example, if you set up inside a button in IB and then in the code size (such as viewDidLoad function) to write on the size of the button when the system is running what? Code is written in a direct setting and IB which counts?
Reply:
shouldAutorotateToInterfaceOrientation is definitely going to enter this function (if you do not comment out the words...)
If you define the ib in good size, but they changed the viewDidLoad button, then certainly in the implementation of viewDidLoad button size. In fact xib just an xml file, so that high-level program than when xml, so xml have to listen to the program
Reply:
Prawns appeared. . . . . You longer tell the difference between loadView, viewDidLoad, viewWillAppear, viewDidAppear it? Or when it will use them? Sensory functions are defined almost do not know why so many similar functions. . . .
Reply:
Reference http://www.cocoachina.com/bbs/ read.php? tid-70973-keyword-viewDidLoad.html
I suggest this to see the official documents, the document written in a very clear, in UIViewController Class Reference are described in detail in this chapter, but also the official examples.
No comments:
Post a Comment