代码之家  ›  专栏  ›  技术社区  ›  arachide

IPhone tabbar应用程序错误

  •  0
  • arachide  · 技术社区  · 14 年前

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

    alt text

    因此,我添加了一个UIView名称View1.Xib,并将其设置为FirstViewController的outlet视图。 然后我删除了“Selected First view Controller(First)”下的原始视图

    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公司

    2 回复  |  直到 14 年前
        1
  •  0
  •   KingofBliss    14 年前

    与其这样做,不如照下面的方法做, 选择选项卡栏项 alt text

    然后在inspector中设置xib值,

    alt text

    然后设置课程,

    alt text

        2
  •  0
  •   AJPatel    14 年前