Jul*_*ien 3 iphone cocoa cocoa-touch objective-c
如果我尝试使用这个简单的代码:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
NSString *stringMer = [NSString stringWithFormat:@"OK COOL"] ;
NSString *stringMer2 = [NSString stringWithFormat:@"OK COOL"];
NSArray *truc = [NSArray arrayWithObjects:stringMer,stringMer2];
}
Run Code Online (Sandbox Code Playgroud)
我的应用程序崩溃("无法读取未知的加载命令0x22"或只是常规崩溃)... applicationDidFinishLaunching来自我的FooAppDelegate,我没有更多的代码,这是正常的吗?
Ale*_*ski 37
传递给arrayWithObjects:方法的参数列表必须是nil-terminated:
NSArray *truc = [NSArray arrayWithObjects:stringMer,stringMer2, nil];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1583 次 |
| 最近记录: |