Time of Update: 2018-12-08
運行實現步驟Step One 建立空項目 Step two 建立兩個表單 Step Three 建立Tab Bar Controller表單建立檔案window.xib後 添加一個Tab Bar Controller Window 後配置Tab Bar Item 配置Pad Bar Controller,主要有設定兩塊 Step Five 建立Tab Bar Controller 和Appdelegate關係並建立outlet(主要通過設定File‘s owner) Step Six
Time of Update: 2018-12-08
1 ios Project選項卡部分Project選擇包含兩個部分 info,build setting1.1 info 部分info部分 包含 發布平台架構 ,debug,realse 配置,本地化配置 等1.2 Build SettingBuild Setting 包含 架構,build Options,Code Signing ,deployment,packaging,search paths,Apple LLVM compiler 2 ios TargetsIOS 的Targets
Time of Update: 2018-12-08
文章目錄 iOS App Icon Design: NoddlerDribbble – App iconCrystal Game App IconRemote App IconMusic app iconPiano iOS App Icon DesignAtari Game Controller app iconPhoto App IconNew fork app iconBag App IconGrubTonight App IconCrewdog
Time of Update: 2018-12-08
我們經常能看到 iOS App 會有一個相應的網站,這個網站中會包含這款 App 的詳細介紹以及激勵使用者去下載使用的相關資訊。今天這篇文章收集了30個非常精美的 iOS App 網站設計案例,如果你也要做一個這樣的網站,相信下面這些優秀案例會帶給您靈感。InstagalleryPostmatesblip.me76 SynthesizerDuetOATBook iPhone AppFontainOpussPaperDay OnebatchFlight
Time of Update: 2018-12-08
category與associative作為objective-c的擴充機制的兩個特性,category即類型,可以通過它來擴充方法;associative,可以通過它來擴充屬性;在iOS開發中,可能category比較常見,相對的associative,就用的比較少,要用它必須使用<objc/runtime.h>的標頭檔,然後就可以自由使用objc_getAssociatedObject以及objc_setAssociatedObject,我們來看下這兩個方法:OBJC_EXPOR
Time of Update: 2018-12-08
UITableView 上節講了一下UIView,這節接著講它的重要子類,UITableView和UITableViewCellUITableView是UIScrollView的子類,因此使用者可以滾動UITableViewCell(UIView的子 類)組成的列表。UITableView 與 UIScrollView 有很多共同點。對於非資料列表的深度自訂的視圖,你可以 使用 UIScrollView 並在裡面布置 UIView 或 UIControl 的子類,不過這種情況下使用
Time of Update: 2013-12-10
Objective-C資料類型可以分為:基礎資料型別 (Elementary Data Type)、物件類型和id類型。基礎資料型別 (Elementary Data Type)有:int、float、double和char類型。物件類型就是類或協議所聲明的指標類型,例如:NSAutoreleasePool * pool,其中NSAutoreleasePool是一個類,NSAutoreleasePool *是它指標類型。id類型可以表示任何類型,一般只是表示物件類型,不表示基礎資料型別
Time of Update: 2013-12-02
簡述 在應用的一些設定中經常要用到一些Picker來快速協助使用者選定取值,一般會用到的有UIDatePicker,UIPickerView以及UIImagePickerController。 初始介面 ,在搭建好的介面,實現方法來完成各個選擇。首先是日期選擇 UIDatePicker 主要需要設定的屬性有localedatePickerMode [cpp] UIDatePicker *datePicker = [
Time of Update: 2013-11-16
首先看TableView擷取cell執行個體的方法- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath涉及Cell執行個體化的代碼:PostCell *cell = (PostCell * (! NSArray *objects = [[NSBundle mainBundle] loadNibNamed:
Time of Update: 2013-11-16
IOS(object-c) 下載查看 PDF 其實還是蠻容易操作的。在下載前,首先要把 IOS 可以儲存檔案的目錄給過一遍: IOS 檔案儲存目錄IOS 可以自訂寫入的檔案目錄,是很有限的,只能是這3個目錄:1. NSDocumentDirectory下載檔案到該目錄,則該文檔可以用 iTunes 直接查看。對於安全性不高,便於瀏覽的檔案,pdf ,可以考慮下載到該目錄。、2. NSLibraryDirectory下載檔案到該目錄,則該文檔不可用
Time of Update: 2013-11-16
http://www.sqlite.org/docs.html -(BOOL) openDB{ //擷取資料庫路徑 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documents = [paths objectAtIndex:0]; NSString *database_
Time of Update: 2013-11-16
UIButton *btn=[[UIButton alloc]initWithFrame:CGRectMake(60, 60, 200, 60)]; btn.backgroundColor=[UIColor greenColor]; [btn setTitle:@"btn1" forState:UIControlStateNormal]; [self.view addSubview:btn]; UIButton
Time of Update: 2013-11-16
file:///Users/yangiori/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS7.0.iOSLibrary.docset/Contents/Resources/Documents/navigation/index.html A workaround - open your browser and go
Time of Update: 2013-10-28
1. Xcode內建GDB,可以使用GDB調試,調試命令: 1.1 po 命令:為 print object 的縮寫,顯示對象的文本描述 (lldb) po [$eax class]:輸出異常對象的地址
(lldb) po [$eax name]:輸出這個異常的名字
(lldb) po [$eax reason]:這個將會輸出錯誤訊息:
(lldb) “po
Time of Update: 2013-10-28
在 4.0 之後,系統就有了它自己的類(NSRegularExpression,NSRegularExpression)來使用Regex,,之前都是要添加第三方類庫 RegexKitLite 來使用 這兩個類的簡單使用: NSString *str = @"3sdfh*odsi"; //匹配第一個字元是數字 NSRegularExpression *regex1 = [NSRegularExpression
Time of Update: 2013-10-28
IOS本身沒有系統的CheckBox組件,但是實際開發中會經常用到,所以專門寫了一個CheckBox控制項,直接上代碼 : UICheckBoxButton.h檔案如下: #import #import "Common.h" @interface UICheckBoxButton : UIControl { UILabel *label; UIImageView *icon; BOOL checked; id
Time of Update: 2013-10-28
1. ios提供了兩種高品質的圖形繪製方法: a. OpenGL ES進行渲染 b.Quartz,Core Animation, UIKit進行繪製 2. OpenGL ES架構主要適用於遊戲或者高幀率的應用程式開發。基於C語言的介面,用於建立2D和3D內容。 UIKit的圖形系統 3. iOS中所有的描畫,無論OpenGL ES, Quartz, UIKit, 或者Core Animation 都發生在UIView對象的地區內. 4.
Time of Update: 2013-10-28
- (void)initCheckVersionWithData:(NSData *)data{NSData *xmlData = data;NSString *result = [[NSString alloc] initWithData:xmlData encoding:NSUTF8StringEncoding];NSLog(@"result:%@",result);GetCheckVersion *parser = [[GetCheckVersion
Time of Update: 2013-10-28
1、寫了一個小Demo,實現上下移動的: 主要代碼如下: - (IBAction)upChange:(id)sender { if (typeView == down) { [self.downBtn setHidden:NO]; [self.upBtn setHidden:NO]; [UIView animateWithDuration:0.5 animations:^{ self.upView.center =
Time of Update: 2013-10-28
Objective-C和C語言一樣,提供了一些標準宏,描述了當前檔案,所在源碼檔案的行數,以及函數資訊。而Objective-C本身,也提供了相關的類類型。都可以應用在調試和錯誤處理日誌當中。前置處理器在C/C++/Objective-C語言中提供的宏* __func__%s 當前函數簽名
* __LINE__%d 在原始碼檔案中當前所在行數* __FILE__ %s 當前原始碼檔案全路徑* __PRETTY_FUNCTION__ %s 像__func__,但是包含了C+