1.遇到 類(lèi)似這樣"\u8216" 如何 轉(zhuǎn)成 中文
方法:1:用類(lèi)似這樣的網(wǎng)站 http://tool.114la.com/site/utf8/
2:用chrome控制臺(tái) (今天剛學(xué)到的)

2.清除xcode所有的描述文件
首先cd到目錄”~/Library/MobileDevice/Provisioning\ Profiles”
cd ~/Library/MobileDevice/Provisioning\ Profiles/
然后刪除里面所有的mobileprovision文件
sudo rm *.mobileprovision
3.蘋(píng)果開(kāi)發(fā)者的電話
4006701855
4.collectionview
collectionview reload 完,setContentOffset 不起效果
[self.collectionView reloadData];
[self.collectionView setContentOffset:CGPointMake(kScreenWidth*self.articleNumber, 0) animated:YES];
解決方案:http://alexyu.me/2015/06/08/how-to-find-a-colletion-view-cell-immediately-after-reload-data/
[self.collectionView reloadData];
[self.collectionView performBatchUpdates:^{
[self.collectionView setContentOffset:CGPointMake(kScreenWidth*self.articleNumber, 0) animated:YES];
} completion:^(BOOL finished) {
}];
5.The following untracked working tree files would be overwritten by merge: .DS_Store
git clean -d -fx
6.mac 模擬post 請(qǐng)求 并且下載文件
curl 命令
curl -o 5.sqlite -d "version=902&id=5&os=1&uid=5914891&sign=5200fbe495f48ffbfe8b137267e6f35f&uuid=v87818a0daaaf6f07aeebcdc9424755f" https://iapp.iiyi.com/zlzs/v9/application/down
7.隱藏ios navigationbar 系統(tǒng)的返回按鈕
[self.navigationItem setHidesBackButton:YES];
8.runtime提供了一個(gè)方法直接可以獲取已經(jīng)安裝app的bundle id
include <objc/runtime.h>
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
8.清除所有的mobileprovision
cd ~/Library/MobileDevice/Provisioning\ Profiles/
rm *.mobileprovision