2012-12-04

Xcode升級編譯問題

升級Xcode從4.4.1到4.5.2,sdk會出現6.0,
原本只有5.1,理論上升級上去5.1會不見,
但是可以另外再把5.1安裝上去,
這樣有些舊的code就可以繼續正常編譯。


到目前為止,如果你使用iphone 5.1 Simulator執行舊的project,應該都沒問題。
但如果使用iphone 6.0 Simulator非常可能會出問題。
另外要使用device執行也會有armv7s的錯誤。
暫時最快解決的方法就是....  如下,
是可以執行,但不保證會不會有其他問題.....  






2012-11-29

ios without ARC ~

http://iskens.blogspot.tw/2012/08/ios-class-without-arc-compiler.html


2012-10-14

ios app 判定用戶不能使用直接跳出的好方法


After some tests, I can say the following:
  • using the private interface : [UIApplication sharedApplication] will cause the app looking like it crashed, BUT it will call - (void)applicationWillTerminate:(UIApplication *)application before doing so;
  • using exit(0); will also terminate the application, but it will look "normal" (the springboard's icons appears like expected, with the zoom out effect), BUT it won't call the - (void)applicationWillTerminate:(UIApplication *)application delegate method.
My advice:
  1. Manually call the - (void)applicationWillTerminate:(UIApplication *)application on the delegate.
  2. Call exit(0);.
推薦使用=> exit(0);

要讓用戶死的明白~ 
可以用~ =>  UIAlertView警告他之後再...  自爆~

reference : Stack Overflow

2012-09-13

iphone ipad 開發設定

我發現我一定要寫一下開發筆記,
不然忘東忘西的....

主要要記錄的就是....
Apple review team審核的時候,
會使用new iPad審核,
有些Project用default設定就會如下面圖(1)(2),
但是只要用了圖(3)(4)設定,就是可以自己訂製專用的iPad UI.
不用長的跟iphone UI一模一樣。






2012-02-13

iphone web service NOTE ...

@有三種做法:
(1)http://code.google.com/p/wsdl2objc/
(2)http://sudzc.com/
(3)http://drekka.github.com/dXml/

第一種有試過, 三個範例都OK~
第二種有Demo影片,還沒試過,看起來也是OK.
第三種有難度,適合高手....

PS:拿到WSDL檔案,注意看後面的IP... 你連線的http IP要和binding IP對一下,
不要一邊是內網,ㄧ邊是外網。