Time of Update: 2018-12-07
官方的門戶網站Refernce LibraryMac OS X Refernce Libraryhttp://developer.apple.com/library/mac/navigation/ iOS Refernce Libraryhttp://developer.apple.com/library/ios/navigation Safari Refernce
Time of Update: 2018-12-07
從7月份到現在,接了一本新書在翻譯,業餘時間基本被佔用,部落格暫時沒有更新,首先向各位博友表示歉意。之所以接新書翻譯,不是為了掙外快,主要覺得一直沒有系統地看過一本關於iOS開發方面的書籍,希望能夠在翻譯過程中,將自己不夠完整的基礎知識進行補充。由於是一本入門書籍,在翻譯過程中戰戰兢兢,生怕有一句翻譯錯誤誤導讀者,每個段落每個語句翻譯完成之後,都要反覆閱讀7~8遍甚至10幾遍確認是否準確地表達了作者的意圖。隨著翻譯過程的深入,深深地體會到了大師級的程式員在設計範例程式碼時的舉重若輕。書中的很多樣
Time of Update: 2018-12-07
近日來由於iOS7的發布,引來業界的各種吐槽。為了體驗一把,我已經把iPhone5刷成了iOS7,也下載Xcode5-DP並進行了測試。我想說的是iOS7與Xcode5-DP中新增的幾個不錯設計及功能:1、iOS7
Time of Update: 2018-12-07
NSArray *array1 = [NSArray arrayWithObjects:@"iphone",@"ipod",nil]; NSArray *array2 = [NSArray arrayWithObjects:@"mac",@"imac",@"mac pro",nil]; NSDictionary *myDictionary = [NSDictionary
Time of Update: 2018-12-07
讀取:---------------------------------------------------------------//首先讀取studentInfo.plist中的資料NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"customInfo" ofType:@"plist"];NSDictionary *dictionary = [[NSDictionary alloc]
Time of Update: 2018-12-07
//軟體資訊[[UIDevice currentDevice] systemName];//系統名字[[UIDevice currentDevice] systemVersion];//系統版本號碼[[UIDevice currentDevice] uniqueIdentifier];//[[UIDevice currentDevice] model]; //裝置型號[[UIDevice currentDevice] name]; // 硬體資訊[UIDevice
Time of Update: 2018-12-07
聲明歡迎轉載,但是請尊重作者勞動成果,轉載請保留此框內聲明,謝謝。文章出處:http://blog.csdn.net/iukey MPMoviePlayerController 與AVAudioPlayer有點類似,前者播放視頻,後者播放音頻,不過也有很大不同,MPMoviePlayerController
Time of Update: 2018-12-07
//建立播放器並播放視頻。-(void) playMovie{ NSString* videoPath = [[Globals getResourceManager] loadVideo:@"abcSong"]; player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:videoPath]]; [[NSNotificationCenter
Time of Update: 2018-12-07
代碼-- (IBAction)uploadAction:(id)sender { NSString *urlstring=self.urlTextField.text; //NSString *poststr=@""; NSData *imgData=UIImageJPEGRepresentation(self.previewImageView.image, 0.9f); NSString *boundary = @"0xKhTmLbOuNdArY";
Time of Update: 2018-12-07
-(UIToolbar *)createActionBar { UIToolbar *actionBar = [[UIToolbar alloc] init]; actionBar.translucent = YES; [actionBar sizeToFit]; actionBar.barStyle = UIBarStyleBlackTranslucent; UIBarButtonItem *doneButton = [[UIBarButtonItem
Time of Update: 2018-12-07
郵件發送功能是由MessageUI Framework提供的,這個架構是iPhone sdk中最簡單的框。由一個類、一個視圖控制器,一個protocol組成。一、建立視圖控制器:MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init]; mc.mailComposeDelegate = self; 二、設定郵件主題: [mc setSubject:@"Hello,
Time of Update: 2018-12-07
一行代碼顯示你的位置iOS中的MapKit整合了定位的功能,使用一行代碼就可以在google地圖上展示出自己當前的位置,代碼如下:-(IBAction) showLocation:(id) sender { if ([[btnShowLocation titleForState:UIControlStateNormal] isEqualToString:@"Show My Location"]) { [btnShowLocation setTitle:@"Hide
Time of Update: 2018-12-07
iOS sdk中提供了很多方便的方法來播放多媒體。本文將利用這些SDK做一個demo,來講述一下如何使用它們來播放音頻檔案。AudioToolbox framework 使用AudioToolbox framework。這個架構可以將比較短的聲音註冊到 system sound服務上。被註冊到system sound服務上的聲音稱之為 system sounds。它必須滿足下面幾個條件。1、 播放的時間不能超過30秒2、資料必須是
Time of Update: 2018-12-07
UIWebView是iOS sdk中一個最常用的控制項。是內建的瀏覽器控制項,我們可以用它來瀏覽網頁、開啟文檔等等。這篇文章我將使用這個控制項,做一個簡易的瀏覽器。如:我們建立一個Window-based Application程式命名為:UIWebViewDemoUIWebView的loadRequest可以用來載入一個url地址,它需要一個NSURLRequest參數。我們定義一個方法用來載入url。在UIWebViewDemoViewController中定義下面方法:-
Time of Update: 2018-12-07
開發工具使用Mac的安裝盤或從apple網站下載Xcode開發代碼使用副檔名的分類 application delegate需要處理的內容ƒAt launch time, it must create an application’s windows and display them to the user.l It must initialize your data.l It must respond to “quit” requests.l It must handle
Time of Update: 2018-12-07
文章目錄 NSStringNSMutableStringDate TimesNSArrayNSMutableArrayDictionaryNSNotificationEvent responseMVCDelegateTarget-ActionCategoriesSingletons Cocoa中常用的類NSStringNSMutableString賦值NSString *myString = @"some string";NSString
Time of Update: 2018-12-07
程式開發中根據要使用各種各樣的資料,如配製、檔案系統、資料庫等,iOS對這個有很好的支援PreferencesIf you’re going to create a program that has built-in preferences, you should do so using the Utility Application template. To create the special cartouched list used by preferences, you must
Time of Update: 2018-12-07
瞭解和熟悉這個對後續的開發很重要。 關於這個的參考資料■ View Controller Programming Guide for iOSFor information about structuring and managing your application’s user
Time of Update: 2018-12-07
Book DescriptioniOS Forensic Analysis provides an in-depth look at investigative processes for the iPhone, iPod Touch, and iPad devices. The methods and procedures outlined in the book can be taken into any courtroom. With iOS information never
Time of Update: 2018-12-07
Notification是智能手機應用編程中非常常用的一種傳遞資訊的機制,而且可以非常好的節省資源,不用消耗資源來不停地檢查資訊狀態(Pooling),在iOS下應用分為兩種不同的Notification種類,本地和遠程。本地的Notification由iOS下NotificationManager統一管理,只需要將封裝好的本地Notification對象加入到系統Notification管理機制隊列中,系統會在指定的時間激發將本地Notification,應用只需設計好處理Notificati