Time of Update: 2016-11-18
iOS之數位格式化,iOS之數字格式化//通過NSNumberFormatter,同樣可以設定NSNumber輸出的格式。例如如下代碼:NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];formatter.numberStyle = NSNumberFormatterDecimalStyle;NSString *string = [formatter stringFromNumber:[NSNumber
Time of Update: 2016-11-07
iOS 開發學習之路(登陸驗證調用WebService)二,ioswebservice swift3.0下使用Alamofire調用Webservice遇到的一些問題以及解決方案。 首先是針對沒有認證的https下的介面處理問題(ps:不推薦在正式版本中使用),manager.request替換掉了Alamofire.request。let manager = Alamofire.SessionManager.default
Time of Update: 2016-11-07
IrregularGridCollectionView處理不定寬度的標籤cell,collectionviewcellIrregularGridCollectionView處理不定寬度的標籤cell 效果 源碼https://github.com/YouXianMing/UI-Component-Collection 中的 IrregularGridCollectionView//// IrregularGridCollectionView.h//
Time of Update: 2016-11-03
iOS開發常用快速鍵,ios快速鍵一. 蘋果快速鍵表徵圖二. Xcode基本快速鍵建立項目 Shift + CMD + N項目中建立檔案 CMD + N運行 CMD + R編譯 CMD + B停止運行 CMD + .清除緩衝 Shift + CMD + K左縮排 CMD + [右縮排 CMD + ]關閉項目 CMD + W終止程式 CMD + Q注釋或取消注釋 CMD + /自動提示列表 ESC三. 模擬器常用快速鍵模擬器Home鍵 Shift + CMD + H模擬器截屏 CMD +
Time of Update: 2016-11-01
ios開發 學習積累20161101,ios2016110120161101XML的聲明1 <?XML version="1.0" encoding="UTF-8" ?>XML文檔必須有根項目XML 對大小寫敏感所有XML元素必須有關閉標籤XML文檔必須加引號 在XML中,一些字元擁有特殊的意義,需要實體引用。 XML 中,有 5 個預定義的實體引用:< < 小於> > 大於& &
Time of Update: 2016-10-28
iOS UITableview的cell自適應,uitableviewcell背景:這幾天做項目,又遇到了cell的自適應高度問題首先我們必須要知道UITableViewcell 的代理執行順序,在iOS7出現了一個代理方法叫:tableView:
Time of Update: 2016-10-15
xcode8 關閉控制台列印不用資訊,xcode8控制台控制台列印的資訊如下 2016-10-15 10:13:17.774543 LGLSearch-Dome[1656:356106] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0,
Time of Update: 2016-10-12
iOS IPv6相容支援和IPv6審核被拒收集整理,iosipv6最近遇到一個大坑:IPv6審核被拒問題,於是廣尋解決方案,先把一些可以用資料文檔收集起來備用。也希望同行能用得著。官方文檔說明:Supporting IPv6 DNS64/NAT64
Time of Update: 2016-10-12
object-c初級知識查詢工具,object-c查詢分享一下自己在學習iOS開發過程中整理的一些比較常見的知識點。內容門檻較低,比較適合初學,歡迎各大程式開發愛好者交流。分享內容中存在錯誤還望能指導指導!!隨筆說明: 集合Object-c部分基礎知識點、常用的方法隨筆定義: 可當做查詢工具隨筆持續完善,後續會整理swift.
Time of Update: 2016-10-11
Block入門,mblock入門 iOS4.0開始,Block橫空出世,它其實就是c預言的補充,書面點說就是帶有自動變數的匿名函數,Block簡潔,代碼的可讀性也高,因此深受廣大開發人員的喜愛,這一次給大家介紹Block的基本類型和項目中的實際操作。Block的形式如下:Block的基本類型1.無參數無傳回值void(^tempBlock)() = ^(){ NSLog(@"無參無傳回值");
Time of Update: 2016-10-08
iOS開發常用代碼塊,ios開發遍曆可變數組的同時刪除數組元素NSMutableArray *copyArray = [NSMutableArray arrayWithArray:array]; NSString *str1 = @“zhangsan”; for (AddressPerson *perName in copyArray) { if ([[perName name] isEqualToString:str1]) {
Time of Update: 2016-10-10
實現iOS圖片等資源檔的熱更新化(四):
Time of Update: 2016-10-07
在uiview裡面的tableView中,點擊cell進入跳轉到另一個介面的方法,uiviewtableview1.先重寫uiviewcontrol的方法- (UIViewController *)viewController { for (UIView* next = [self superview]; next; next = next.superview) { UIResponder
Time of Update: 2016-09-28
iOS UITableview,iosuitableview1. UITableView//去除tableviews的點擊效果cell.selectionStyle = UITableViewCellSelectionStyleNone; //隱藏tableView的分割線cell.tableView.separatorStyle =
Time of Update: 2016-09-24
iOS,ios9UIWebView是IOS內建的瀏覽器,可以瀏覽網頁,開啟文檔 html/htm pdf docx txt等格式的檔案。 safari瀏覽器就是通過UIWebView做的。伺服器將MIME的標識符等放入傳送的資料中告訴瀏覽器使用那種外掛程式讀取相關檔案。 uiwebview載入各種本地檔案(通過loadData方法): - (void)viewDidLoad{ [super
Time of Update: 2016-09-20
Xcode8新特性和iOS10新特性,xcode8新特性ios10 從 Xcode 8.0 開始,目前所有的外掛程式都無法工作!NSLog 無法輸出 -- 此bug等待正式版本...Xcode 提供了文檔注釋快速鍵option + cmd + / 但是要把系統升級到10.11.5、 Interface Builder 介面構建器——加速編輯器擴充 Editor Extensions 新的Xcode
Time of Update: 2016-09-22
iOS音頻開發之`AudioStreamBasicDescription`,ios音視頻開發這個類提供了對於音頻檔案的描述An audio stream is a continuous series of data that represents a sound, such as a song.A channel is a discrete track of monophonic audio. A monophonic stream has one channel; a stereo
Time of Update: 2016-09-20
iOS 日期處理 (Swift3.0 NSDate),swift3.0nsdate處理日期的常見情景NSDate -> String & String -> NSDate日期比較日期計算(基於參考日期 +/- 一定時間)計算日期間的差異拆解NSDate對象(分解成year/month/day/hour/minute/second
Time of Update: 2016-09-12
ios 擷取與修改類私人屬性與執行個體變數,ios執行個體 1 #import "Cat.h" 2 3 @interface Cat () 4 5 @property (nonatomic, copy) NSString *name; 6 7 @end 8 9 @implementation Cat{10 int age;11 }12 13 -(instancetype)initWithName:(NSString *)string{14 self = [super
Time of Update: 2016-09-08
React Native知識10-ListView組件,react10-listviewListView -