Iphone开发中的两个小bug,1.调用camera时的内存警告导致view自动upload,2,Not enough frames in stack.

1.最让人纠结的问题。

全部的主要问题在于下面的区别。

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #008c00} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #490085} span.s1 {color: #000000} span.s2 {color: #cb00a5}

//[self.navigationController pushViewController:viewController animated:YES];

[self presentModalViewController:viewController animated:YES];

注释掉的那一行就是原来会被内存警告自动upload,原因在于iphone系统认为此时此view是不可显示的,下面那种modal的方式,可以保证自己不被系统的内存警告upload掉。虽然navigationController能实现更多的切换动画效果,此时也只能放弃了。在这里有解释现象:

http://stackoverflow.com/questions/1834128/memory-warning-after-using-the-uiimagepicker-once

但是自己碰到的具体问题,还是摸索了很久,苹果也没有说navigationController pushViewController的切换view方式就算是不显示啊。

2.我自己测试机没有测试出来,疑似更新OpenFeint出现的问题,当时没有考虑太多,仅仅是通过覆盖原有旧OpenFeint。

实际解决方案:(来自:http://www.cocoachina.com/bbs/read.php?tid-10706-fpage-5.html)

* Select 'Targets' in the Groups & Files pane.
* Right click your target and select Get Info.
* Select the 'General' tab.
* Under 'Linked Libraries' change the following libraries from 'Required' to 'Weak'
* UIKit
* MapKit


你可能感兴趣的:(iPhone开发)