快速開發 iOS app ( Prototype 工具篇 )
"製作 Prototype 的主要目的是減少溝通成本,以及整理並釐清你心裡那堆雜亂的想法。
過去我在兩個專案的 Prototype 階段內,主要用傳統的紙筆,配合列印出來的 iPhone 裝置外框畫出草圖,使用 Mac 上的 Sketch 製作 UI,最後用 POP iPhone app 來展示給團隊及客戶。"
.
Sunday, April 28, 2013
Tuesday, April 23, 2013
建立App流程
- 設定GitHub: 在github上開repo,clone到指定資料夾
- 使用git-flow (optional)
- 開啟專案和Unit Test: 開啓新專案,並使用Unit Test
- 設定Podfile,使用pod setup, pod install
- 設定其他所需Lib
- 做第一次的git push
- 加上injection方便觀察UI
Monday, April 22, 2013
Sunday, April 21, 2013
TDD: Test Driven Development
TDD (Test Driven Development):
Introduction to Test-Driven Development*
Agile in Practice: Test Driven Development*
Learning TDD Through Test First Teaching
Looking at Other Unit Test Tools: OCHamcrest, OCMockito, and Kiwi*
[30天快速上手TDD][Day 1]TDD Guidance*
.
Introduction to Test-Driven Development*
Agile in Practice: Test Driven Development*
Learning TDD Through Test First Teaching
Looking at Other Unit Test Tools: OCHamcrest, OCMockito, and Kiwi*
[30天快速上手TDD][Day 1]TDD Guidance*
.
Friday, April 19, 2013
my Podfile (Cocoapods)
//2013.4.19 (這行不用加)
platform :ios, '6.0'
pod 'DCIntrospect', '~> 0.0.2'
pod 'InAppSettingsKit', '~> 1.0'
pod 'AFNetworking', '~> 1.2.0'
pod 'MagicalRecord', '~> 2.1'
pod 'RestKit', '~> 0.20.0'
pod 'Nimbus', '~> 1.0.0'
pod 'SSKeychain', '~> 1.0.2'
pod 'BlocksKit','~> 1.8.1'
pod 'Facebook-iOS-SDK','~> 3.5.0'
target :UnitTests do
link_with 'UnitTests'
pod 'Kiwi', '~> 2.0.6'
end
platform :ios, '6.0'
pod 'DCIntrospect', '~> 0.0.2'
pod 'InAppSettingsKit', '~> 1.0'
pod 'AFNetworking', '~> 1.2.0'
pod 'MagicalRecord', '~> 2.1'
pod 'RestKit', '~> 0.20.0'
pod 'Nimbus', '~> 1.0.0'
pod 'SSKeychain', '~> 1.0.2'
pod 'BlocksKit','~> 1.8.1'
pod 'Facebook-iOS-SDK','~> 3.5.0'
target :UnitTests do
link_with 'UnitTests'
pod 'Kiwi', '~> 2.0.6'
end
Thursday, April 18, 2013
Running the analyzer within Xcode
Performing Static Code Analysis
Running the analyzer within Xcode
.
Running the analyzer within Xcode
- Logic flaws, such as accessing uninitialized variables and dereferencing null pointers
- Memory management flaws, such as leaking allocated memory
- Dead store (unused variable) flaws
- API-usage flaws that result from not following the policies required by the frameworks and libraries the project is using
.
Wednesday, April 17, 2013
Unit Testing Roundup
Featured:
Unit Testing : NSHipster
Unit Testing:
Stanford 19. Automated Testing
Unit Testing in Xcode 4 Quick Start Guide
You Really Can Use Test Driven Development in Creating iPhone Apps
Unit Testing for iOS - Jamie Sa
Roundup: Testing
iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing
Looking at Other Unit Test Tools: OCHamcrest, OCMockito, and Kiwi*
運用 MethodSwizzling 和 OCMock 於 Objective-C Unit Test
Kiwi - iOS Testing with Style!*
Up and Running with Kiwi
Test Driving iOS Development with Kiwi
UIAutomation
SenTest (OCUnit)
OCMock
Kiwi*
Kif
Jasmine
Cedar
Objecitive-C - Unit Test 設定
單元測試 Unit Test 簡單設置
XCode 下的 iOS 单元测试
Better Design Through Testing - Jamie Sa
30天快速上手TDD
運用 MethodSwizzling 和 OCMock 於 Objective-C Unit Test
TDD: Test Driven Development
.
Unit Testing : NSHipster
Unit Testing:
Stanford 19. Automated Testing
Unit Testing in Xcode 4 Quick Start Guide
You Really Can Use Test Driven Development in Creating iPhone Apps
Unit Testing for iOS - Jamie Sa
Roundup: Testing
iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing
Looking at Other Unit Test Tools: OCHamcrest, OCMockito, and Kiwi*
運用 MethodSwizzling 和 OCMock 於 Objective-C Unit Test
Kiwi - iOS Testing with Style!*
Up and Running with Kiwi
Test Driving iOS Development with Kiwi
UIAutomation
SenTest (OCUnit)
OCMock
Kiwi*
Kif
Jasmine
Cedar
Objecitive-C - Unit Test 設定
單元測試 Unit Test 簡單設置
XCode 下的 iOS 单元测试
Better Design Through Testing - Jamie Sa
30天快速上手TDD
運用 MethodSwizzling 和 OCMock 於 Objective-C Unit Test
TDD: Test Driven Development
.
Tuesday, April 16, 2013
Monday, April 15, 2013
Saturday, April 13, 2013
Thursday, April 11, 2013
Wednesday, April 10, 2013
Objective-C與iOS的學習資源 - 葉難
Objective-C與iOS的學習資源 - 葉難
"問:想在iOS(iPhone, iPod Touch, iPad)上開發,有何教學文件?
答:
1. The iOS 5 Developer's Cookbook: Core Concepts and Essential Recipes for iOS Programmers by Erica Sadun。
學習iOS軟體開發不錯的入門書,從iOS SDK 2.x開始一直更新到現在的iOS 6.x。從基本講起,範圍廣泛,這本範例很多。
iOS 5的中文翻譯本,書名是"iOS SDK 開發範例大全"。..."
.
"問:想在iOS(iPhone, iPod Touch, iPad)上開發,有何教學文件?
答:
1. The iOS 5 Developer's Cookbook: Core Concepts and Essential Recipes for iOS Programmers by Erica Sadun。
學習iOS軟體開發不錯的入門書,從iOS SDK 2.x開始一直更新到現在的iOS 6.x。從基本講起,範圍廣泛,這本範例很多。
iOS 5的中文翻譯本,書名是"iOS SDK 開發範例大全"。..."
.
Sunday, April 7, 2013
ios delegate你必須知道的事情:Circular retain
ios delegate你必須知道的事情:Circular retain
如果你是寫library給別人用的,記得把你的delegate設成assign property,這樣才不會造成circular reference
當你是要始用別人的library,記得在你自己dealloc的時候,把delegate設成nil,以避免crash的事情發生。
iOS blocks - 三個會造成retain cycle的anti patterns
我建議要解決retain cycle的最好思維就是想清楚從屬關係
.
如果你是寫library給別人用的,記得把你的delegate設成assign property,這樣才不會造成circular reference
當你是要始用別人的library,記得在你自己dealloc的時候,把delegate設成nil,以避免crash的事情發生。
iOS blocks - 三個會造成retain cycle的anti patterns
我建議要解決retain cycle的最好思維就是想清楚從屬關係
__block MyClass* temp = …; // MRC環境下使用 __weak MyClass* temp = …; // ARC但只支援iOS5.0以上的版本 __unsafe_retained MyClass* temp = …; //ARC且可以相容4.x以後的版本
.
Monday, April 1, 2013
Subscribe to:
Posts (Atom)