小编use*_*769的帖子

iOS App在模拟器上运行但不在设备上运行?

我的应用程序没有错误,警告或内存泄漏,在模拟器上运行完美,但我的iPhone 4上运行iOS 5的黑屏.这SIGABRT是在主线上发生的:

int retVal = UIApplicationMain(argc, argv, nil, nil);
Run Code Online (Sandbox Code Playgroud)

由于我的代码似乎没问题,有没有人知道什么样的东西一般会导致这种行为?

我还能在哪里寻找可能的错误?SIGABRT我得到的所有参考文献都是汇编... 0.o

编辑: 调试器的输出:

This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
sharedlibrary apply-load-rules all
target remote-mobile /tmp/.XcodeGDBRemote-4281-83
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
Couldn't register BearNun.Stack-Meet-App with the bootstrap server. Error: unknown error code.
This generally means that another instance of this …
Run Code Online (Sandbox Code Playgroud)

iphone crash xcode objective-c ios5

3
推荐指数
1
解决办法
5399
查看次数

在iPhone屏幕上获取UI元素的X/Y坐标 - 不是UIView?

据我所知,为了获得UI元素的x或y坐标,您可以使用button.center.y或self.view.frame.size.height之类的东西来获取UIView的高度.但是,如果我理解这一切,所有这些都在UIView的范围内.

你如何获得iPhone屏幕本身相同的信息?

也许是这样的:

screen.view.frame.size.height
Run Code Online (Sandbox Code Playgroud)

提前致谢.

编辑:我的UIElements在UIScrollView上.

screen ios

0
推荐指数
1
解决办法
6874
查看次数

标签 统计

crash ×1

ios ×1

ios5 ×1

iphone ×1

objective-c ×1

screen ×1

xcode ×1