leftSwitchLabel.textColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:167/255.0 alpha:1];
Note: 使用時給值記得要除以255
leftSwitchLabel.textColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:167/255.0 alpha:1];
Note: 使用時給值記得要除以255
modifying layer that is being finalized
solution:
用
[view removeFromSuperview];
取代
[view release];
分析:
通常發生在從UI上移除某個View
release 或 修改了已經release的view
移除view的一般操作顺序應該是
1:removeFromSuperview
2:release view
PS. autorelease 就不用再release了
ref:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/8038-modifying-layer-being-finalized.html
http://blog.evandavey.com/2009/03/how-to-solve-modifying-layer-that-is-being-finalized-iphone-sdk.html
以 str1 和 str2 相接合併到 str 為例
NSString *str1 = @"2012/01/01"; NSString *str2 = @"是芥末日"; NSString *str = [str1 stringByAppendingString:str2];
mp4box -split time_sec foo.mp4 #按照時間分割MP4文件 mp4box -split-size size foo.mp4 #按照檔案大小分割MP4文件,單位是KB mp4box -split-chunk S:E foo.mp4 #切出影片中指定的某段時間
mp4box -cat foo1.mp4 -cat foo2.mp4 -new foo.mp4 #合併,要求編碼參數一致 mp4box -force-cat foo1.mp4 -force-cat foo2.mp4 -new foo.mp4 #強制合併,有可能無法播放 mp4box -add video1.264 -cat video2.264 -cat video3.264 -add audio1.aac -cat audio2.aac -cat audio3.aac -new muxed.mp4 -fps 24 #合併多段聲音和影片並保持同步
剛剛 didSelectRowAtIndexPath 一直怎樣都不會進去,後來發現是因為 customized 的 tableview 沒有連接 delegate 到 View controller 的關係。
Webstagram – Instagram Web Viewer
只要用你的Instagram帳號登入,即可瀏覽~
當你使用電腦懶得開iPhone的時候,用Webstagram是個不錯的選擇!
CollinsKingMixedDict For Kindle v2
http://code.google.com/p/skmobile/downloads/list
本詞典由整合了英英詞典Collins Cobuild English Dictionary For Advance Leaner 3rd edition(CCED3)、Collins Thesaurus和英漢詞典金山詞霸簡明英漢詞典,共有條目240381,索引280314。變形數據來自於CCED3,3w多詞條,大概7w左右的索引。
最新回應