原创 快速修改程序支持iphone5

 今天iphone5已經開賣,昨天ios6也已經更新,sdk模擬器已經可以測試iphone5 4英寸的屏幕。 如何修改程序支持iphone5. 1.首先xcode更新到4.5。 2.添加一張Retina(4-inch)啓動畫面的圖片,大小爲

原创 iOS開源代碼 —— UI相關

 MBProgressHUD —— 進度指示 一種優雅的,半透明的進度顯示效果。同時還提供了其他附加功能,比如顯示完成信息並淡出。 iCarousel  —— 效果很酷的分頁排列 內容類似的頁面需要並排列出來,供用戶選擇。iCarousel

原创 CABasicAnimation animationWithKeyPath 一些規定的值

  CABasicAnimation animationWithKeyPath Types When using the ‘CABasicAnimation’ from the QuartzCore Framework in Object

原创 uiimagepickerviewcontroller

  if(0==buttonIndex)     {         if (![UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTyp

原创 當程序崩潰的時候怎麼辦

  http://article.ityran.com/archives/1006 http://article.ityran.com/archives/1143      http://article.ityran.com/    

原创 iphone ios 如何使用gcd,block

 http://blog.sina.com.cn/s/blog_45e2b66c01010dhd.html 1。GCD之dispatch queue http://www.cnblogs.com/scorpiozj/archive/2011

原创 舊工程適配iOS6和iPhone5的一些故事

 蘋果每發佈一個系統,都夠開發者忙活一陣的,更新xcode適配新系統:像iOS4支持Retain需要@2x的圖;像iOS5不支持udid;像現在的iOS6和iPhone5要面對的下面的一堆問題。 1.添加Retina 4 launch

原创 iphone 線程 NSCondition NSThread

 多線程在各種編程語言中都是難點,很多語言中實現起來很麻煩,objective-c雖然源於c,但其多線程編程卻相當簡單,可以與java相媲美。這篇文章主要從線程創建與啓動、線程的同步與鎖、線程的交互、線程池等等四個方面簡單的講解一下ipho

原创 iOS 6版本與之前版本差異總結

 1、適配4英寸屏幕適配。 舊應用要與4英寸屏幕進行適配,需要創建一張[email protected]圖片,系統根據是否有此資源來識別是否支持4英寸屏幕。至於其他資源不允許使用xxx-568h.jpg此格式來適配屏幕,需要使用代碼對屏

原创 UIView animateWithDuration 使用詳解

  UIView animateWithDuration 使用詳解 發表於 2012 年 3 月 4 日 在ios4.0及以後鼓勵使用animateWithDuration方法來實現動畫效果。當然,以往的begin/commit的

原创 plist

   NSString *path  = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Info.plist"];//     NSLog(@"pa

原创 我的友情鏈接

51CTO博客開發

原创 修改UINavigationBar高度

 @implementation UINavigationBar (CustomHeight) - (void)layoutSubviews { [super layoutSubviews]; CGRect barFrame =

原创 【Cocos2d-X(1.x 2.x) 】iOS6與iphone5解決armv7s,[email protected]

 本站文章均爲 李華明Himi 原創,轉載務必在明顯處註明: 轉載自【黑米GameDev街區】 原文鏈接: http://www.himigame.com/iphone-cocos2dx/1020.html     一、 很多項目使用>=4

原创 CABasicAnimation animationWithKeyPath 一些規定的值

  CABasicAnimation animationWithKeyPath Types When using the ‘CABasicAnimation’ from the QuartzCore Framework in Object