Time of Update: 2015-05-09
IOS項目-通訊錄,ios項目通訊錄主要是針對極客學院的通訊錄項目,知識點的整理...點擊-> 下載代碼1,實現登陸和密碼輸入框為空白時,為不可用狀態實現方案:使用添加觀察者的方式來實現,在viewDidLoad事件當中添加觀察者,來監聽nameField和pwdField文字框內容發生改變的事件,內容改變後觸發當前類的textChange事件- (void)viewDidLoad { [super viewDidLoad];//添加觀察者
Time of Update: 2015-05-09
只 一行顯示可左右滾動的文本(UITextField中文限制),滾動uitextfield//// ViewController.m// 一行顯示可滾動的文本//// Created by apple on 15-5-8.// Copyright (c) 2015年 apple. All rights reserved.//#import "ViewController.h"@interface ViewController () { UIScrollView
Time of Update: 2015-05-08
iOS Programming Views :Redrawing and UIScrollView,iosuiscrollviewiOS Programming Views :Redrawing and UIScrollView 1.1 event You are going to see how views are redrawn in response to an event.你將看到view如何響應event的。You declared properties in header
Time of Update: 2015-05-08
UITabBarController(標籤欄控制器),uitabbarcontroller一、標籤欄控制器的基本概念 UITabBarController 繼承於視圖控制器,通過標籤欄項的形式來管理檢視控制器,各個標籤欄項之間的視圖控制器彼此獨立,互不影響。
Time of Update: 2015-05-08
完美方案——iOS的WebView自適應內容高度,ioswebview /////////////////////////////初始化,self.view是父控制項///////////////////////////////// _webView = [[UIWebView alloc] initWithFrame: CGRectMake(0, 0, self.view.frame.size.width, 0)]; _webView.delegate = self;
Time of Update: 2015-05-07
應該直接學Swift還是Objective-C? 蘋果在2014年的WWDC大會上發布了Swift語言之後,很多初學者都有一個共同的疑問,
Time of Update: 2015-05-08
iOS 刪除NSString中特定字元+(NSString *) stringDeleteString:(NSString *)str{ NSMutableString *str1 = [NSMutableString stringWithString:str]; for (int i = 0; i < str1.length; i++) { unichar c = [str1 characterAtIndex:i]; NSRange range =
Time of Update: 2015-05-07
block,blockb//1 聲明block//2 實現block//3 調用block//聲明函數指標//void (*ptest1) (void)//聲明block,要指向匿名函數void (^block1)(void);int (^block2)(int a,int b);int (^block3)(int a,int b);typedef void (^block4)(void);typedef int (^block5)(int a,int b); //block的實現//
Time of Update: 2015-05-07
根據鍵盤調整textField(多個)位置使其不會被鍵盤擋住,textfield擋住當一個介面上有個textField時,鍵盤出現時需要保證textField不會被鍵盤擋住。一般的做法是,監聽 UIKeyboardWillShowNotification和
Time of Update: 2015-05-08
(iOS)響應事件傳遞, nextResponder研究響應事件傳遞, nextResponder研究這裡,我們考慮以下二種情況。 問題1。 如何調用父view的controller裡面的方法?答案如下:[[self superview ].nextResponder method];[[[self superview ] nextResponder] method];[self.nextResponder
Time of Update: 2015-05-07
如何將非ARC的項目轉換成ARC項目 如何將非ARC的項目轉換成ARC項目 Xcode 內建一個自動轉換的功能,不過只適合比較小的項目,在大型項目上是不適合適用的,所以大型項目上需要全手動轉換。 1.將項目編譯環境改成ARC 將紅圈處從No 改成Yes 如果你現在的工程不支援ARC技術,你可以通過一個自動轉換工具來轉換你的工程(工具在 Edit>Refactor>Convertto
Time of Update: 2015-05-08
淺談iOS學習之路,淺談ios之路轉眼學習iOS已經快兩年的時間了,這個路上有挫折也有喜悅,一步步走過來發現這個過程是我這一輩子的財富,我以前的老大總是對我說,年輕就是最大的資本(本人91年),現在才算是慢慢的體會到,反觀自己走過的這兩年的路,既有開心,又有無奈,也有激情。行了,廢話少說,我寫這個隨筆的目的就是談一下這兩年的心路曆程和技術分享,大家多交流。我第一家公司是一家創業公司,做酒店O2O,也是我剛畢業後的第一家公司,基本上我所有學到的東西都是在這家公司自學的,剛開始其實也是怎麼實現怎麼來
Time of Update: 2015-05-07
iOS中nil 、NULL、 Nil 、NSNull的區別 1.nil >Defines the id of a null instance. 定義一個執行個體為空白, 指向oc中對象的null 指標. >範例程式碼: NSString *someString = nil; NSURL *someURL = nil; id someObject = nil; if (anotherObject == nil) // do
Time of Update: 2015-05-07
ios懶人筆記應用源碼,ios懶人源碼這個源碼是懶人筆記應用源碼,也是一個已經上線的apple市集的應用,懶人筆記iOS用戶端源碼,支援語音辨識,即將語音轉化成文本文字,所用語音辨識類庫為訊飛語音類庫。
Time of Update: 2015-05-07
IOS開發得到所有的字型樣式ios的提供了很多的字型樣式。有時候我們在開發應用的時候可能用到不同的字型,通過此Demo我們可以擷取到所有的字型樣式供我們選擇。首先擷取字型字型族科名字,再通過族科的名字擷取到字型的名字。 _fontArray = [[NSMutableArray alloc] initWithCapacity:242]; for (NSString * familyName in [UIFont familyNames]) { NSLog(@Font
Time of Update: 2015-05-07
iOS下載網狀圖片-(void)setWebImage:(NSURL *)aUrl placeHolder:(UIImage *)placeHolder downloadFlag:(int)flag{dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{//配置下載路徑NSString *path=[NSHomeDirectory() stringByAppendingFormat:@"
Time of Update: 2015-05-07
iOS-響應上下左右滑動手勢-(void)viewDidLoad{ UISwipeGestureRecognizer *recognizer;recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)];[recognizer
Time of Update: 2015-05-07
ios英語口語800句應用源碼,ios英語口語800句前幾天突發奇想做了個很水的應用,名字叫chinese 800(漢語口語800句),現在讓別人傳上去了(正在傳)。今天又改了一下變成了英語口語800句。加了廣告條ui
Time of Update: 2015-05-07
iOS 鍵盤第一響應. UIResonder對於C#裡所有的控制項(例如TextBox),都繼承於Control類。而Control類的繼承關係如下:System.Object System.MarshalByRefObject System.ComponentModel.Component
Time of Update: 2015-05-07
iOS筆記(常用的一些知識點)這是我在公司做項目時,順便做的一些筆記.......//1.iphone開發--改變UIPageControl裡的小點的顏色pageControl.currentPageIndicatorTintColor = [UIColor blackColor];pageControl.pageIndicatorTintColor = [UIColor grayColor]; //2.ios如何讓狀態列變成白色的[[UIApplication