原创 symbolicatecrash使用

1.首先找到該文件,打開終端 find /Applications/Xcode.app -name symbolicatecrash -type f 會得到類似下面這樣的一個路徑 /Applications/Xcode.app/C

原创 cocoaPods 使用方法

1.打開終端,依次輸入 gem sources --remove https://rubygems.org/ gem sources -a http

原创 使用Alcatraz來管理Xcode插件

安裝和刪除 使用如下的命令行來安裝 Alcatraz: 1 2 mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins; curl

原创 Xcode模擬器和文檔備份

Xcode下載過的模擬器和下載的開發者文檔會保存在下面的路徑中:  /Users/<username>/Library/Caches/com.apple.dt.Xcode/Downloads 當重新安裝Xcode時,只要把該

原创 創建mac os 安裝盤

sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/vencentle --a

原创 iOS自帶的二維碼掃描功能

iOS7自帶有二維碼掃描,我簡單寫了一個工具類 源碼在WXQRCodeReader

原创 mac下顯示隱藏文件

defaults write com.apple.Finder AppleShowAllFiles YES && killall Finder 要修改某個文件的隱藏屬性則使用方法: chflags nohidden filename

原创 iso轉dmg

1. convert。$ hdiutil convert -format UDRW -o /path/to/generate/img/file /path/to/your/iso/file2.check。$ diskutil list3.

原创 Install Package Control

https://sublime.wbond.net/installation

原创 Xcode描述文件路徑

~/Library/MobileDevice/Provisioning\ Profiles 緩存垃圾目錄 ~/Library/Developer/Xcode/DerivedData

原创 用php寫簡單的json數據

<?php $video = array ( 'status' => '0', 'statusinfo'=>'', 'title'=>'', 'shareurl'=>'' ); $test = [video=>$video,v

原创 用C寫入文件

不用NSFileHandle而使用C的文件操作,代碼如下 -(void)writeToFile:(NSData *)data fileName:(NSString *) fileName { FILE *file = fo

原创 升級xcode7系列版本插件失效問題

#!/bin/sh #獲取DVTPlugInCompatibilityUUID a=`defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatib

原创 UIView截取圖片UIimage

@implementation UIView (captureImage) - (UIImage *)captureImage { UIGraphicsBeginImageContext(self.frame.size);

原创 drawInRect:withAttributes用法

iOS--drawInRect:withFont等方法在iOS7.0後背棄用,代替方法drawInRect:withAttributes用法(轉載) 1.NSKernAttributeName:@10 調整字句 kerning 字句調