Time of Update: 2014-12-13
IOSÖÐÉèÖÃUINavigationBarµÄ¸÷ÖÖÑùʽ£¨Í¼Æ¬/͸Ã÷Ч¹û/Ï·½ÄÚÈÝÏÔʾÇé¿ö)ΪÁË·½±ãÑÝʾ£¬ÎÒÓÃstoryBoard½¨Á¢ÁËÒ»¸ö»ù±¾µÄµ¼º½À¸ ²¢ÔÚ´úÂëÖлñµÃÁËNavgationBarUINavigationBar *bar =
Time of Update: 2014-12-13
iOS瘋狂詳解之清理工程中沒有用到的圖片APP發布前往往需要清理工程中沒有用到的圖片,這些圖片可能是測試圖片也可能是以往版本中替換遺留下來的圖片使用方法將下面代碼儲存成**.sh 然後chomd 777 使其可執行將**.sh 拷貝到工程根目錄下./執行**.sh再同級目錄下會產生一個imge.txt 結果檔案如源碼#!/bin/shecho "刪除有風險 下手需謹慎 如需再次確認圖片是否被引用到"echo "Defult.png 和例如[UIImage
Time of Update: 2014-12-13
iOS瘋狂詳解之多線程GCDGrand Central Dispatch (GCD)是Apple開發的一個多核編程的解決方案。dispatch queue分成以下三種:1)運行在主線程的Main queue,通過dispatch_get_main_queue擷取。/*!* @function dispatch_get_main_queue** @abstract* Returns the default queue that is bound to the main thread.**
Time of Update: 2014-12-12
[iOS基礎控制項,ios基礎控制項使用storyboard設計靜態表格式資料 A.實現步驟 1.控制器繼承UITableViewController 2.在storyboard中使用TableViewController,刪除原來的ViewController 3.設定class 4.設定新的View Controller為程式入口 5.設定TableView的Style為Grouped
Time of Update: 2014-12-12
iOS 資料庫持久化,ios資料庫Java代碼 -(void) addObserver{ //當程式進入後台時執行操作 UIApplication *app&
Time of Update: 2014-12-12
ios開發過程中螢幕方向判斷的問題 Landscape 豎屏Portrait 橫屏最有效方法是:在willRotateToInterfaceOrientation:duration:方法中將方向儲存起來:DrviceOrientation =
Time of Update: 2014-12-09
擷取iOS裝置資訊有時候做項目是需要擷取手機的相關資訊,好讓使用者知道自己的使用方式:鑌哥就直接寫代碼了 /* 擷取手機資訊 應用程式的名稱和版本號碼等資訊都儲存在mainBundle的一個字典中,用下面代碼可以取出來 */ NSDictionary* infoDict =[[NSBundlemainBundle] infoDictionary]; NSString* versionNum =[infoDict
Time of Update: 2014-12-09
iOS開發學習之#表視圖#(1)刪除行好久木有寫部落格了,前面學習的表視圖其他內容都木有寫,今天就從刪除行開始吧,希望自己能夠堅持下去。。加油(^ω^)。。廢話少說吧,,,直接上代碼:下面是刪除行的核心代碼:- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath
Time of Update: 2014-12-09
iOS 索引值觀察(KVO)簡述及執行個體理解KVO概述:KVO,即:Key-Value Observing,直譯為:基於鍵值的觀察者。
Time of Update: 2014-12-09
iOS開發 - 如何擷取裝置的總容量和可用容量 網路電訊廠商 3g/wifi判斷 手機型號鑌哥最近開發需擷取手機容量,其實這你是一個很好的例子//硬碟容量- (float)getTotalDiskSpace{ float totalSpace; NSError * error; NSDictionary * infoDic = [[NSFileManagerdefaultManager]
Time of Update: 2014-12-09
iOS UICollectionView手寫代碼實現步驟iOS UICollectionView手寫代碼實現步驟//// ViewController.h// collectionView手寫代碼//// Created by yangxiuying on 14/11/28.// Copyright (c) 2014年 lanjiying. All rights reserved.//#import @interface ViewController :
Time of Update: 2014-12-09
IOS鍵盤擋住UITextView的解決方案- (void)registerForKeyboardNotifications { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter]
Time of Update: 2014-12-09
IOS-篩選數組內的元素 //需要去掉的元素數組 NSMutableArray *filteredArray = [[NSMutableArray alloc]initWithObjects:@"1",@"4", nil]; //需要被篩選的數組 NSMutableArray *dataArray = [[NSMutableArray alloc]initWithObjects:@"1",@"2",@"1",@"4",@"6",@"1",@"1",@"4",@"1",@"
Time of Update: 2014-12-09
IOS-UITabView樣本總結
Time of Update: 2014-12-09
iOS開發:git命令返回任意一個版本的方法git回退某一個版本的方法:一:記錄回退的hash值首先要查看你要回退到哪一個版本方法1:git log會展示最新的提交記錄,然後你按著鍵盤的“向下”鍵,看更多的提交記錄,記住你要回退的哪一個版本的hash值方法2:git reflog 會展示最近操作的記錄,然後你記住要回退的hash值二:執行回退命令知道hash值之後,接下來就是指向回退命令了:git reset --hard
Time of Update: 2014-12-06
SQLite 終端相關命令,sqlite終端命令 SQLite ALLLast login: Fri Dec 5 09:52:08 on ttys002BeSilent:~ qianfeng$ sqlite3 data.dbSQLite version 3.7.13 2012-07-17 17:46:21Enter ".help" for instructionsEnter SQL statements terminated with a
Time of Update: 2014-12-08
語音(LCVoiceHudDemo),語音lcvoicehuddemo代碼:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. voice = [[LCVoice alloc] init]; UIButton * button = [UIButton
Time of Update: 2014-12-06
黑蘋果安裝教程(一),蘋果安裝教程一。下載鏡像和相關軟體二。將鏡像寫入隨身碟三。安裝鏡像: 1.將隨身碟插入USB介面。 2.重啟電腦,於此同時狂按F12,進入隨身碟安裝。 彈出介面:Boot Menu:ATAPI CD1:PLDS DVD-RW DS8A9SH ATA HDDO:TOSHIBA MQO1ABF050 USB HDD(硬碟驅動): PCI LAN:Realtek PXE B04 D00
Time of Update: 2014-12-04
NSLog的使用,NSLog使用1.NSLog會將字串列印在兩個地方:作業系統的控制台和IDE的控制台。2.對於NSLog來說,它列印的一個目的地並非控制台,而是系統檔案“system.log”。 它另一個輸出的目的地並非IED的控制台,而是stderr。 日誌描述- (NSString
Time of Update: 2014-12-03
iOS基礎7:資料庫在當今智能手機的天下,我們很多資料都是儲存在手機上,如備忘錄,通訊錄等,鑌哥,告訴你,在各種檔案格式在搜尋與儲存的速度都比不上資料庫快,畢竟資料庫在儲存的時候經過特殊格式安排的。而不論是ios或者是android,其內部都是採用SQLite這個嵌入式資料庫作為解決方案。因為比起其他商務資料庫,它可就明顯小得多。SQLite屬於輕量層級的資料庫,它不需要任何設定,更不需要架設任何伺服器。這樣使得它特別適合用於記憶體寸土寸金的嵌入式裝置中。sqlite