Created
December 14, 2014 10:44
-
-
Save zhongge/96f7206baa36f7f11a98 to your computer and use it in GitHub Desktop.
Identify the bug in the following code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If TTWaitController hasn't xib or storyboard, TTWaitController hasn't view. | |
So you couldn't see the screen. | |
Fix: You must override TTWaitController's loadView. | |
- (void)loadview { | |
self.view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment