原创 iOS 5~7的模擬器下載
http://blog.csdn.net/forestml2008/article/details/21714259
原创 ios8屏幕更大,準備好使用 iOS Auto Layout
http://blog.csdn.net/meegomeego/article/details/28616165
原创 刪除Xcode中多餘的證書provisioning profile
xcode5 provisioning profile path: ~/Library/MobileDevice/Provisioning Profiles
原创 UISegmentedControl的詳細使用
http://www.cnblogs.com/top5/archive/2012/05/17/2506618.html
原创 xcode中arc與非arc之間的轉換
非arc轉變爲arc:在控制開關中添加-fobjc-arc 以arc進行編譯。 arc轉變爲非arc:-fno-objc-arc 你可以用以上的方法在
原创 Xcode中下載的iOS XX Simulator的存放目錄
/Users/<username>/Library/Caches/com.apple.dt.Xcode/Downloads
原创 在webView上添加手勢
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(webViewWasPressed:)]
原创 Linux+Nginx下SSL證書安裝
一.Nginx安裝SSL證書需要兩個配置文件 1_root_bundle.crt、 2_domainname.com.key。 注:這三個證書文件都在文件夾for Nginx.zip中,例:1_root_bundle.crt是根證書鏈(公
原创 stretchableImageWithLeftCapWidth:topCapHeight:函數用法
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight這個函數是UIImage的
原创 配置mac自帶Apache和php
1.運行“sudo apachectl start”,再輸入帳號密碼,這樣Apache就運行了。在瀏覽器中輸入“http://localhost”,就可以看到出現一個內容爲“It works!”的頁面,它位於“/Library(資源庫)/
原创 解決想從證書導出p12文件但是該證書中沒有密碼無法導出P12文件的問題
1、首先想在開發者中心生成證書必須在本地鑰匙串中生成證書,如圖: 選擇從證書頒發者中心請求證書,彈出界面 2、把生成的文件上傳什麼的就不說了,下面問題來了,如圖 3、怎麼辦?有辦法,還記得第一步中的第二張圖裏面的提示 “記着這
原创 Mac一體機忘記開機密碼怎麼辦?
開機啓動時按“command+S”。這時進入單一用戶模式(Single user model)。Mac OS的單一用戶模式有準入特權(Root access privilege)而不要求根密碼(root password)。出現像DOS一
原创 category使用 objc_setAssociatedObject/objc_getAssociatedObject 實現添加屬性
屬性 其實就是get/set 方法。我們可以使用 objc_setAssociatedObject/objc_getAssociatedObject 實現 動態向類中添加 方法 1、引用 #import <objc/runtim
原创 iOS 7以後 使用 UIImagePickerController 在圖庫中選取圖片時 添加以下代碼 防止狀態欄的隱藏
#pragma mark - UINavigationControllerDelegate - (void)navigationController:(UINavigationController *)navigationControl
原创 NSString轉換爲char* char*轉換爲NSString
NSString轉換爲char*類型的代碼如下: NSString *string_content = @"sssssss"; const char *char_content = [string_content