Author Archives: admin

Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil

Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil   Symptom: Normal but crash in iOS 7 device. Possible reason : Use some “Baseline” constraints (Only supported after iOS 8) in storyboard. Solution : Remove any “Baseline” constraints of that … Continue reading

Posted in iOS development | Leave a comment

XCode SVN is not under version control

That is the keyword I Googled for solution and no luck. I’m too old to learn new source control mechanism like Git so I stuck on SVN with XCode. It works perfect usually but sometimes it show “xxx is not … Continue reading

Posted in iOS development | Tagged , , , , , , | Leave a comment

Custom URL schemes practice

Let’s define something in this scenario : 1.Receiver app – to be invoked via custom URL 2.Sender app – who wants to invoke the app 3.Custom URL scheme – define as “happygo”     For Receiver app, here’s what to … Continue reading

Posted in iOS development | Leave a comment

iOS Watchkit Development – paired device unavailable for development

I had this problem twice, I googled the same article to do the same actions to fix. Here I wrote down to remember myself. Error : “paired device unavailable for development” showed in XCode when new to Apple Watch Fix … Continue reading

Posted in iOS development | 3 Comments

Icon only UITabbar, no title at all.

1.Clear the title attribute to empty. 2.Set the Image Insect attribute of the Tabbar item as follow And you’re good to go. Happy Tabbaring…

Posted in iOS development | Leave a comment

Set UITabbar tintColor via StoryBoard

I found that it’s really weird to set UITabbar tintColor. It won’t work if you change the Tint attribute in the View section. You have to add the attribute by yourself to make it work. Check this out. Happy Tabbaring … Continue reading

Posted in iOS development | Leave a comment

Add existed XCode project to SVN repository

I’ve been bothered by this issue for a long time. And finally I’d decide to find the best practice today to do this job. Here are the steps: Step 1. Create SVN repository, for example, http://svn.domain.com/myrepo Step 2. Create XCode … Continue reading

Posted in iOS development | Leave a comment

UILabel 動態高度 Dynamic Height

UITableViewCell 有 heightForRowAtIndexPath 可以指定 但是實務上總是會碰到客戶的要求:「動態列高」 若是「想以文字內容決定 UILabel 的高度」 可以使用下面的程式 先用「文字,字型和寬度」(這點要事先決定,不然沒辦法算)計算出 UILabel 的高度 然後再用這個算出來的高度去 initWithFrame 搞定,收工放飯   +(float) getHeightForText:(NSString*) text withFont:(UIFont*) font andWidth:(float)width { CGSize constraint = CGSizeMake(width , 20000.0f); CGSize title_size; float totalHeight; SEL selector = @selector(boundingRectWithSize:options:attributes:context:); if ([text respondsToSelector:selector]) … Continue reading

Posted in iOS development | Leave a comment

不要再抓手機型號了,因為 iPhone6/6P 有 Zoom 果實能力

如果你會看到這篇文章 很有可能你是因為想判斷 iPhone 的不同型號 然後做不同的顯示(字體大小、間距….) 現在讓我告訴你 不要再這麼做了   因為東西南北有的沒有的原因 我落入了「判斷手機型號,然後寫不同的顯示 code」的地獄深淵 好不容易寫完了 交付使用者測試時卻發現「走鐘」現象 奇怪的是在模擬器上顯示一切正常   後來才知道 除了可以設定字體大小之外 iPhone 6/6P 還提供了 Zoom 的功能(註) (分成一般顯示和 Zoom 顯示) iPhone 6Plus 開啟 Zoom 模式,就等同 iPhone 6 的顯示方式 iPhone 6 開啟 Zoom 模式,就等同 iPhone 5S … Continue reading

Posted in iOS development | Leave a comment

GoGo Board v2.2 is ready in AppStore

– Simple marquee banner with scrolling text – Easy to use – Decide what color the text is by yourself – Decide the background color by yourself – Decide the scrolling speed This app was suitable for every kinds of … Continue reading

Posted in 加油板跑馬燈 | Leave a comment