I am using xcode4.3.2 constructed by empty application window based application
Use the following URL tutorial http://www.cnblogs.com/ghj1976/archive/2012/05/25/2518121.html
URL according to the operation on the down part of the effect can be achieved
Specific features: After the operation is complete, the first time you run this app you can see the label inside 1231232
But if I press home to exit the app, then re-enter the above label no
I do not know where the problem is.
Also, I have a word of the article mentioned below is not very understanding:
Modify WBAppAppDelegate.h file, the window exposed to the xib file, which increases IBOutlet property
Modify the code before:
@ Property (strong, nonatomic) UIWindow * window;
After modifying the code:
@ Property (strong, nonatomic) IBOutlet UIWindow * window;
the App Delegate of the window with the Window interface bundle (This sentence is the code above comments do? still need to do what action)
Reply:
The App Delegate of the window with the Window interface bundle.
This sentence means that prompted his picture, hold down the window with the mouse after dragging the little dots to the arrow position.
IBOutlet interact with xib file output, the role is to tell Interface Builder, this will be connected to the instance variables of an object nib.
Nib can not be directly used to write code.
Reply:
You say I've done this operation, but why I still will appear above problems? Is only the first build-run label when they will appear, click on the icon on the simulator follow-up into the label would not it? Solving!
Reply:
Either you add code, or your system has a problem. Click Start to restart the program. Or put your AppDelegate.m posted.
Reply:
I looked at my. M code, simply just the beginning created exactly the same, nothing changes, right?
Reply:
Follow the article has done it again, there will indeed be a problem after switching back from that label does not display the background. Currently not find the problem (personal guess the question should be out in the Main interface configurations on), but generally do not do so when the new projects, generally in Appdelegate Lane will initialize nib file.
Reply:
Carefully looked at, a program also a window, you should fill it instead of adding view window, if you must manually add the window, then you put the system and window interface-related code commented out,
self.window = [[[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]] autorelease];
/ / Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
This is mainly two. As to why these two would appear to leave the question you said, is estimated to be more careful studies of the window in order to answer your iphone.
Reply:
If not mistaken, xcode3.2 inside AppDelegate.m there should not be two lines of code.
Reply:
Oh very good, thank you
Reply:
It seems I have to replace the 4.3 job.
No comments:
Post a Comment