2010-11-25 61 views
0

我已经使用TabBarController模板创建了Xcode iPhone项目。iPhone Tabbar应用程序错误

alt text

我希望FirstViewController链接到的UIView(视图1)。 因此,我添加一个UIView名称View1.Xib并将其设置为FirstViewController的出口视图。 然后我删除选定的第一视图控制器(一)如下图所示

alt text

然后我设置为临时版本的图片,并建立&运行

它安装在我的iPod在”原始视图,但它报告了

Thu Nov 25 19:25:59 unknown com.apple.debugserver-43[2591] <Warning>: debugserver-43 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved. 
Thu Nov 25 19:25:59 unknown com.apple.debugserver-43[2591] <Warning>: Connecting to com.apple.debugserver service... 
Thu Nov 25 19:26:03 unknown com.apple.debugserver-43[2591] <Warning>: 1 [0a1f/0903]: error: ::task_for_pid (target_tport = 0x0103, pid = 2585, task => 0x0000) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005) 
Thu Nov 25 19:26:03 unknown com.apple.debugserver-43[2591] <Error>: error: MachTask::StartExceptionThread(): task invalid, exception thread start failed. 
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 2 [0a1f/0903]: error: ::task_for_pid (target_tport = 0x0103, pid = 2585, task => 0x0000) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005) 
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 3 [0a1f/0903]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: '' 
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: error: failed to launch process (null): failed to get the task for process 2585 
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 4 [0a1f/1603]: error: ::read (7, 0x28091c, 1024) => -1 err = Bad file descriptor (0x00000009) 
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.product[0x64d5]) Bug: launchd_core_logic.c:2649 (23909):10 
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.product[0x64d5]) Working around 5020256. Assuming the job crashed. 
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.company.product[0x64d5]) Job appears to have crashed: Segmentation fault 
Thu Nov 25 19:26:09 unknown SpringBoard[24] <Warning>: Application 'tabbar' exited abnormally with signal 11: Segmentation fault 

我的改变怎么了? 我不熟悉的UITabBarController,这真让我头疼了一周

欢迎任何评论

感谢

InterDev中

回答

0

而不是做这样的操作如下, 在主窗口。 xib, 选择标签栏项目 alt text

然后设置xib值i ñ检查,

alt text

然后设置类,

alt text

0

我觉得你没有设置你的ViewController类的身份检查后比上添加标签视图查看笔尖文件.. 。