跳到主要內容

發表文章

目前顯示的是 7月, 2015的文章

swift extension

教學  http://blog.csdn.net/xn4545945/article/details/39800061 SwiftColors https://github.com/thii/SwiftColors // With hash let color: UIColor = UIColor(hexString: " #ff8942 " ) // Without hash, with alpha let secondColor: UIColor = UIColor(hexString: " ff8942 " , alpha: 0 . 5 ) // Short handling let shortColorWithHex: UIColor = UIColor(hexString: " fff " ) ExSwift https://github.com/pNre/ExSwift   Swift中文网:免费的Swift入门教程,60分钟玩转Swift! http://c.biancheng.net/cpp/swift/

Collection View 的下拉更新

  http://www.cocoachina.com/bbs/read.php?tid-272497.html 當cell很少的情況下(沒有佔滿屏幕),collectionView不能拖動,這個時候就不能拖拽collectionView進行下拉刷新了嗎? 解決方法: 這個問題已經解決,一直忘了回來寫出來。 我發現 當所有collectionCell的高度和沒有佔滿整個parent container的時候,當下拉的時候都不會觸發scrollViewDidScroll。 所以在創建collectionView的時候添加 self.collectionView.alwaysBounceVertical = true

Adobe illustrator CS6

最近公司來了新的美工 這應該是我第一次進距離跟美工共事,果然專業吶! 看她用Adobe illustrator真的是超順的,大概就跟我用Eclipse一樣吧XD so…應該來裝一下illustrator試試… 廢話不多說,先來個網路快樂版 【破解向】Mac版Adobe Illustrator CS6(Ai) 与破解补丁下载–完美破解方法及详细图文安装教程(可升级)  http://blog.cavyff.com/archives/996 【破解向】Mac版Adobe Illustrator CS6(Ai)与破解补丁下载–注册机+序列号+修改HOSTS完美可升级激活法及详细图文安装教程(强烈推荐)  http://blog.cavyff.com/archives/1023     更新到16.0.3支援Retina解析度 官方的更新檔執行更新時失敗 【高清向】Mac版Adobe Illustrator CS6(Ai)升级支持Retina屏幕详细图文教程  http://blog.cavyff.com/archives/1567 說是當更新時發生問題時,要先更新Adobe CS6 update manager,說明如下︰ 【更新向】Mac版Adobe CS6 update manager升级详细图文教程  http://blog.cavyff.com/archives/1586     相關課程 如何在四小时内学会用 Ai 做 UI?  http://www.zhihu.com/question/21378038 产品经理新人是否有必要学习 Photoshop?  http://www.zhihu.com/question/21307699/answer/17837458 2小时学会用AI做UI  http://www.tudou.com/programs/view/n1ogqSpxTxY/?resourceId=0_06_02_99 https://www.youtube.com/watch?v=Ebj7gIOwynE 传智播客Illustrator视频教程12讲(视频+素材+笔记) http://down.51cto.com/zt/3850 电脑教程 平面设计 带你轻松学习illustrator矢量绘制 主讲老师:贺叶

台光電

看來台光電應該還會再漲一點

UI UX

最近一直被批評我的iOS UI設計…說真的,我並沒有非常認真的去研究UI、UX, 但我也不覺得有哪個人有足夠的實力來批評 不過有不足就該去補足…   iOS Human Interface Guidelines  https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/index.html [ISUX轉譯]iOS 8人機界面指南(一):UI設計基礎  http://isux.tencent.com/zh-hant/ios8-human-interface-guidelines.html [ISUX转译]iOS 8人机界面指南(二):设计策略  http://isux.tencent.com/zh-hant/ios8-human-interface-guidelines-design-strategies.html [ISUX轉譯]iOS 8人機界面指南(三):iOS技術(上)  http://isux.tencent.com/zh-hant/ios8-human-interface-guidelines-technology-html.html [ISUX轉譯]iOS 8人機界面指南(三):iOS技術(下)  http://isux.tencent.com/zh-hant/ios8-human-interface-guidelines-technology.html   Apple 出的這個guideline很有名,但又如何?!iPhone最後還不是得做大尺寸的!? 是該看一下,但我覺得沒必要特別強調   UI(使用者介面)到底是什麼?UX(使用者體驗)又是怎麼讓人混淆的? http://www.inside.com.tw/2013/04/03/ryan-singer-on-what-ui-really-is 『對軟體設計而言,所有圍繞著使用者所面臨之問題的核心技術就是 UI 設計。』   UX 設計師寫給 UI 新手的 7 個法則(上) http://www.inside.com.tw/2014/12/01/7-rules-for-creating-gorgeous-ui-part-1 UX 設計師寫給 UI

iOS 左滑功能 Swipe

  method 1 - commitEditingStyle 這個method一定要複寫才會有功能出現   method 2 - canEditRowAtIndexPath 決定是否要出現左滑功能(要先有method 1)   method 3 - editActionsForRowAtIndexPath 若有自定義的功能,就得複寫這個method,但得連系統預設的功能也要一併複寫 也就是說複寫後連Delete也不見了,要一併再實作出來!   Objective-C - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { } - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { if(tableView==self.categoryTableView){ return YES; }else{ return NO; } } - (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewRowAction *moreAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"More" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { // show UIActionSheet }]; moreAction.backgroundColor = [UIColor greenColor]; UITableViewRowAction *flagAction = [UITab

iOS 註解

Objective-C #pragma mark - 註解 效果︰ 其他特殊的註解用法︰ 只能寫在method外面,不能用在method裡面! 效果︰ 來源︰ 善用 #pragma mark Preprocessor 整理你的程式碼  http://furnacedigital.blogspot.tw/2011/09/pragma-mark-preprocessor.html   Swift︰ // MARK: - 註解 效果︰ 其他的只剩下三種有效果 ///FIXME:等待修復的bug ///TODO: 等待撰寫的code ///MARK: 註記 2015/07/22 其實兩個斜線就可以了… // FIXME:等待修復的bug // TODO: 等待撰寫的code // MARK: 註記   參考︰ http://stackoverflow.com/questions/24017316/pragma-mark-in-swift            

Monkey Talk

Monkey Talk 官網  https://www.cloudmonkeymobile.com/   iOS Agent安裝大概步驟(參考官網Installing the MonkeyTalk iOS Agent)︰ Installing the MonkeyTalk iOS Agent  https://www.cloudmonkeymobile.com/monkeytalk-documentation/monkeytalk-getting-started/install-agent/ios Installing the MonkeyTalk Android Agent  https://www.cloudmonkeymobile.com/monkeytalk-documentation/monkeytalk-getting-started/install-agent/android https://prativas.wordpress.com/2014/08/15/using-monkeytalk-in-androidstudio/ 1.建立Target複本 (YourAppMonkey),manager schema的地也要改成 YourAppMonkey 2.放入必須的lib (要指定給YourAppMonkey) 3.執行 安裝成功!   基本資訊可參考網友整理的中文教學說明︰ MonkeyTalk 說什麼?  http://sunmr.blogspot.tw/2015/03/monkeytalk.html MonkeyTalk Agent (iOS篇)  http://sunmr.blogspot.tw/2015/03/monkeytalk-agent-ios.html MonkeyTalk Agent (Android篇)  http://sunmr.blogspot.tw/2015/03/monkeytalk-agent-android.html MonkeyTalk (IDE篇)  http://sunmr.blogspot.tw/2015/04/monkeytalk-ide.html  (only Android)   官網上的Gatting Started (IDE安裝及腳本製作) https://

[Mac] TotalFinder 1.6.27

網路快樂版 檔案下載處︰ http://www.macpeers.com/47/9957.html 破解說明︰ http://www.52mac.com/soft/6850-1-1.html 截錄︰ 3、右键下面导航栏上的Finder(不是TotalFinder),“前往文件夹...”,然后输入下面蓝色的部分: /Library/ScriptingAdditions/TotalFinder.osax/Contents/Resources/ 注意:不要多输入了空格,输入完后按“前往”,会打开Resources文件夹。 4、现在然后打开软件包中的破解补丁,把Resources文件夹中的TotalFinder.bundle文件拖到破解补丁“TotalFinder 1.x [SP]”中   側邊欄不見了的問題 http://www.mobile01.com/topicdetail.php?f=481&t=3796512 顯示方式 -> 顯示工具列 之後就可以用Option + Command + s 來控制是否顯示了

中華電信測速

自從中華電信來幫我家換個數據機後,我家的WIFI就跟死掉的一樣 用手機測速,在客廰還有二三十,在房間只有個位數   今天完整的來測一下~ http://speed.hinet.net/drspeed.htm 客廰數據機旁接網路線測速 這麼快!!   客廰數據機旁用WIFI 啥!這麼慢!再測一次…     我的房間測速…只剩下二三十… …無言…   可能要靠小米路由器了   今天裝了小米路由器,號稱可以穿牆 先在客廳測一下WIFI 還不錯!換房間試試… 在房間訊號明顯有差,但也比個位數好得多了!不過不是很穩就是了…    

Xcode無法透過iPhone測試的問題

這次慘劇的發生是在這次iOS8.4發佈之後 前一晚在家我把我兩只iPhone都升到8.4 但在Mac上卻一直沒辦法順利更新,我想說應該沒差,明天下班回家再升級… 結果隔天就發現當iPhone接上xcode時,就出現了(OS version)的字樣 我猜,這應該是指我的xcode版本時舊了(version 6.3.2),無法支援到我iOS8.4的iPhone 還好之前己經設定好Ad Hoc,還可以包ipa檔再透過Droobox來安裝

6月APP廣告收益