Closed fealonelei closed 8 years ago
I am a little confused by your code. <br /n> In AppDelegate.m , after line 40, some code like : <br /n>
AppDelegate.m
ViewController mainframeViewController = ({ ViewController mainframeViewController = [[ViewController alloc] init];
UIImage *mainframeImage = [[UIImage imageNamed:@"tabbar_mainframe"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; UIImage *mainframeHLImage = [[UIImage imageNamed:@"tabbar_mainframeHL"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; mainframeViewController.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"微信" image:mainframeImage selectedImage:mainframeHLImage]; mainframeViewController.view.backgroundColor = [UIColor colorWithRed:48 / 255.0 green:67 / 255.0 blue:78 / 255.0 alpha:1]; mainframeViewController; });
what is the last line ? I found that if I comment it mainframeViewController;(the last line in bracket) out , the compiler will complain. I don't know what is this programming syntax. Could you offer some reference or hint, please ?
mainframeViewController;
Of course, you can find it: https://github.com/objc-zen/objc-zen-book#exploit-code-block
That's great ! Thanks a lot.
I am a little confused by your code. <br /n> In
AppDelegate.m
, after line 40, some code like : <br /n>ViewController mainframeViewController = ({ ViewController mainframeViewController = [[ViewController alloc] init];
what is the last line ? I found that if I comment it
mainframeViewController;
(the last line in bracket) out , the compiler will complain. I don't know what is this programming syntax. Could you offer some reference or hint, please ?