标签:
1.-(BOOL) respondsToSelector: selector 用来判断是否有以某个名字命名的方法(被封装在一个selector的对象里传递)
1 if ([delegate respondsToSelector:@selector(didFinishUpload:)]) {
2 [delegate didFinishUpload:self];
3 }
2.self.window .rootViewController = loginVC;给window添加根视图控制器。
3. recruitmentViewController *recruitment = [[recruitmentViewController alloc] init];
[UIApplication sharedApplication].delegate.window.rootViewController = recruitment;在非
#import "AppDelegate.h"中给window添加根视图控制器。
标签:
原文地址:http://www.cnblogs.com/liuguan/p/4948983.html