iPhone标签栏应用程序错误

时间:2010-11-25 11:52:29

标签: iphone

我使用TabBarController模板创建了Xcode iPhone项目。

alt text

我希望FirstViewController链接到UIView(View1)。 所以我添加一个UIView名称View1.Xib并将其设置为FirstViewController的插座视图。 然后我删除了“选择的第一视图控制器(第一个)下的原始视图”,如下图所示

alt text

然后我设置为临时版本并构建& Run

它安装在我的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中

2 个答案:

答案 0 :(得分:0)

而不是像这样做,如下所示, 在mainwindow.xib中, 选择选项卡栏项 alt text

然后在检查器中设置xib值,

alt text

然后设置班级

alt text

答案 1 :(得分:0)

我认为你没有在身份检查器中设置ViewController的类比在标签视图上添加视图nib文件后...