iPhone、iPad程式

  • warning: Creating default object from empty value in /home/xnvgu7/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.
  • warning: Declaration of views_handler_argument::init(&$view, &$options) should be compatible with views_handler::init(&$view, $options) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_argument.inc on line 745.
  • warning: Declaration of views_handler_filter::options_validate(&$form, &$form_state) should be compatible with views_handler::options_validate($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • warning: Declaration of views_handler_filter::options_submit(&$form, &$form_state) should be compatible with views_handler::options_submit($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • warning: Declaration of views_handler_filter_boolean_operator::value_validate(&$form, &$form_state) should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 149.
  • warning: Declaration of views_plugin_style_default::options(&$options) should be compatible with views_object::options() in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_style_default.inc on line 25.
  • warning: Declaration of views_plugin_row::options_validate($form, &$form_state) should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • warning: Declaration of views_plugin_row::options_submit($form, &$form_state) should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/xnvgu7/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
有關iPhone、iPad程式類的文章

Paginate html file in UIWebView 、 UIWebView分頁

Paginate html file in UIWebView 、 UIWebView分頁:2012-09-19星期三

Xcode4加快方法

Xcode4加快方法:2011年11月10日星期四

Xcode4很慢,尤其在舊Mac上(我的Mac mini是2GHz Intel Core 2 Duo,memory 1G DDR2、Bus 667Mhz),以下是三個加快方法(注意:先用Xcode4打開Xcode3的project或已用Xcode4產生了project):

原始碼下載頁面

UIToolbar上顯示不出UILable

UIToolbar上顯示不出UILable:2011年05月09日星期一

重覆使用UIView、UIScrollView

重覆使用UIView、UIScrollView..:2011年05月09日星期一

當一頁一頁使用UIView、UIScrollView..時,不能一直allocation UIView,需使用已不需要的UIView。

作法:

每alloc一次UIView,給個tag,例如:myUIView.tag = 999;

其次,假設該UIView myUIView是myScrollView的subView,則以,reuseUIView = [myScrollView viewWithTag:999];找到這個view,來重覆使用。

 

 

class間傳訊息

class間傳訊息:2011年05月10日星期二

有aClass及bClass,假設AClass會BClass *myBClass = [[BClass alloc] init];因此,可用myBClass去call任何BClass內method因而達到AClass傳訊息給BClass的目的。但是,如何在BClass內傳訊息給AClass呢?

NSURL load不到search query

NSURL load不到search query:2011年04月04日星期一

設定search engine string,例如:http://www.google.com/search?q=query(query內為八卦), 用q=query語法後,[myWebView loadrequest:request];竟load不到search結果。

UIImage在device無法imageNamed

UIImage在device無法imageNamed:2011年04月04日星期一

UIImage *myImage = [UIImage imageNamed:@"jesse.jpg"]; 竟然在device無法成功,但是用simulator卻OK。

tabbaritem的png無法顯示、是gray

tabbaritem的png無法顯示、是gray:2011年04月04日星期一

使用tabbarcontroller,需要更改tabbaritem上的image,一般都用.png檔,實作發現,許多.png檔無法顯示,呈現出來的是一片灰白-gray。

Xcode3.2.6+iOS4.2無法上傳iPhone

Xcode3.2.6+iOS4.2無法上傳iPhone:2011年04月04日星期一

若最近下載了Xcode3.2.6,選了Device/Debug後想將程式上傳iPhone測試,卻不成功,而有以下message,可繼續讀本文。

Can’t install application

The Info.plist for application at /Users/admin/Desktop/abc/def/build/Debug-iphoneos/def.app specifies a minimum OS version of 4.3, which is too high to be installed on someiPhoneDevice

Google API由經緯度查高度的iPhone程式

Google API由經緯度查高度的iPhone程式:2011年03月21日星期一

iPhone程式中若有了經緯度值,想找高度(離海平面標高),可用Google API,詳見Google Elevation API 一文。 下段程式碼即是:

上傳iOS App的Documents檔案夾

上傳iOS App的Documents檔案夾:2011年02月21日星期一

每個iOS App都有個Documents檔案夾,從iPad及iOS4開始,有了File Sharing功能,讓使用者可以"同步"Documents檔案夾。步驟相當多,詳見Ray Wenderlich網站的 How To Integrate iTunes File Sharing With Your iOS App一文。

本文節錄片段,只以"上傳iOS App的Documents檔案夾"一事說明,步驟如下。

程式設計師在寫App時,先在info.plist檔內設定勾選:

Application supports iTunes file sharing (Ray的文章是UIFileSharingEnabled)

在App已上傳至iPhone後,使用者:

第16章、網絡開發

iPhone創意開發入門與實戰

iPhone創意開發入門與實戰第16章16.2.4套接字TCP聊天程序

iPhone創意開發入門與實戰第16章16.2.4套接字TCP聊天程序:2010年08月31日星期二

iPhone SDK開發範例大全第五章之二FontPickerTable(2/10)

iPhone SDK開發範例大全第五章之二FontPickerTable(2/10):2010年05月31日星期一

iPhone SDK開發範例大全即iPhone Developer's CookBook的中文譯本,程式可由erica網站下載。第五章講基本表格,程式共有十個。這是第二個程式---02a-FontPickerTable。

Xcode 開啟 Navigation - Based App

Xcode 開啟 Navigation - Based App:2010年05月29a日星期六

iPhone SDK開發範例大全即iPhone Developer's CookBook的中文譯本,程式可由erica網站下載。第五章講基本表格,程式共有十個。看完了第一個程式---01a-Base Table,會好奇該程式是如何開始的?

iPhone SDK開發範例大全第五章之二Base Table(1/10):

iPhone SDK開發範例大全第五章之二Base Table(1/10):2010年05月29日星期六

iPhone SDK開發範例大全即iPhone Developer's CookBook的中文譯本,程式可由erica網站下載。第五章講基本表格,程式共有十個。看第一個程式---01a-Base Table。

UniTV免費看台灣電視節目表

UniTV免費看台灣電視節目表:2010年05月17e日星期一

iPhone上UniTV免費看台灣電視節目表,UniTV的中文是"由你看電視",打開後,出現第一圖。點<現正播放>,出現各電視台正在播放的節目如第二圖。點<依頻道日期查詢>,出現今天各電視台名稱,如第三圖,點選任一台,就會出現該台一天的電視節目表。

My Family Album免費替照片加說明

My Family Album免費替照片加說明:2010年05月17d日星期一

iPhone上My Family Album免費替照片加說明,打開後,在第一圖右上方點<+>,加入照片,並且替該照片加說明。完成後如第二圖

訂閱文章