原创 升級Xcode7.3出現Cannot create __weak reference in file using manual reference counting 解決方法:
升級Xcode7.3出現Cannot create __weak reference in file using manual reference
原创 導航欄使用不透明的圖片時,控制器view的y值
ios7之前的版本中UIViewController中的view在顯示後會自動調整爲去掉導航欄的高度的,控件會自動在導航欄以下襬放。 在iOS7中UIViewController的wantsFullScreenLayout屬性被捨棄了
原创 有關內容對齊方式的四個容易混淆的屬性
一. textAligment : 文字的水平方向的對齊方式 1> 取值 NSTextAlignmentLeft = 0, // 左對齊 NSTextAlignmentCenter = 1, // 居中對齊 N
原创 控件看不見或者看得見不能點擊的原因小結
一:創建了一個控件,就是看不見 1,當前控件沒有添加到父控件中 2,當前控件的hidden = YES 3, 當前控件的alpha <= 0.01 4, 沒有設置尺寸(frame.size, bounds.size
原创 XCode6 模擬器的鍵盤不顯示解決方法
1,iOS Simulator -> Hardware -> Keyboard 2,取消:Connect Hardware Keyboard 點贊 收藏 分享 文章舉報 ad
原创 pod導入命令
pod install --verbose --no-repo-update pod update --verbose --no-repo-update 點贊 收藏 分享 文章舉報
原创 解決library not found for -lPods-AFNetworking問題
使用了Cocoa Pod , 在編譯的時候,出現 library not found for -lPods-AFNetworking clang: error: linker command failed with exit code
原创 IOS開發之GCD---dispatch_semaphore
信號量是一個整形值並且具有一個初始計數值,並且支持兩個操作:信號通知和等待。當一個信號量被信號通知,其計數會被增加。當一個線程在一個信號量上等待時,線程會被阻塞(如果有必要的話),直至計數器大於零,然後線程會減少這個計數。 在G
原创 libc++abi.dylib: terminate_handler unexpectedly threw an exception
在ios開發的時候,會遇到這樣的bug, libc++abi.dylib: terminate_handler unexpectedly threw an exception 知道在哪一行報出的錯誤,但是,具體錯誤的原因無法得知,此
原创 git命令大全
Git常用命令 查看、添加、提交、刪除、找回,重置修改文件 git help <command> # 顯示command的help git show # 顯示某次提交的內容 git show $id git co -- <fil
原创 UITabBar使用小結
一、UITabBar 1. UITabBarController底部的選項卡條 二、UITabBarButton 1. UITabBar底部的每一個標籤 2. 每一個UITabBarButton裏面顯示什麼內容,取決於當前控制器的ta
原创 UITableView/UIScrollView內容視圖下移
先來看看,普通控制上添加一個UITableView的情況:(設置tableView的背景顏色爲藍色) 再來看看實現的代碼: UITableView *tableView = [[UITableView alloc] initWith
原创 UINavigationBar的使用小結
一、UINavigationBar 1.導航控制器頂部的欄(UI控件) 2. UINavigationBar上面顯示什麼內容,取決於當前控制器的navigationItem屬性 3. UINavigationBar是view, navi
原创 iphone 適配LaunchImage
全部圖片列表 [email protected] (640×1136)[email protected] (640×1136)[email protected] (640×96
原创 使用bundle管理多版本Cocoapods之間的協助開發
本文爲轉載文章,出處:https://blog.csdn.net/u013749108/article/details/53239557 一般在公司團隊開發中,在使用Cocoapods的時候,會面臨同事之間使用的pod版本不一致的問題。