【发布时间】:2011-07-09 06:27:26
【问题描述】:
如何从 MainViewController 执行 AppDelegate 中的方法。
[super performSelector:@selector(doSomething)];
并且方法doSomething在AppDelegate.m中定义
-(void) doSomething {
NSLog(@"Method Executed");
}
【问题讨论】:
标签: ios objective-c uiviewcontroller uiapplicationdelegate