
Swift - AutoLayout
目的:安排調整版面VIEW的尺寸位置, 不寫code
View無論在直式、橫式的畫面,其padding及margin長寬都一樣,不會改變。
1. New Project:SingleView Application
2. Product Name:AutoLayoutSample

Swift - AutoLayout
目的:安排調整版面VIEW的尺寸位置, 不寫code
View無論在直式、橫式的畫面,其padding及margin長寬都一樣,不會改變。
1. New Project:SingleView Application
2. Product Name:AutoLayoutSample

Swift - SimpleCalculator
目的:簡易折扣計算
操作:輸入值-->選取折扣%-->按'計算'button'
1. New Project:SimpleCalculator/Swift
2.畫面配置

比較Objective-C和Swift in Xcode的不同:
Swfit:
1.New Project:
2.Single View Application:
3.Language:Swift
Xcode 6.2 message:
warning: values of type nsinteger should not be used as format arguments; add an explicit cast to unsigned long instead
answer: (unsignedlong)
原來code:
NSAssert(accumNumOfViews == self.delegate.numberOfViews, @"wrong accum %lu ",ri.accumulatedViews);
Xcode 6.2 message:
warning: implicit conversion loses integer precision 'nsinteger' (aka 'long') to 'int'
answer: (int)
原來code:
[cellDict setObject:[NSNumbernumberWithInt:toPosition.row] forKey:@"Row"];
AFP(Apple Filing Protocol): was the primary protocol for file services
supported:
SMB (Server Message Block),
NFS (Network File System),
FTP (File Transfer Protocol),
何謂Cocoa Touch:
is a UI framework for building software programs to run on the iPhone, iPod Touch, and iPad from Apple Inc.
provides an abstraction layer of iOS,
is based on the Mac OS X Cocoa API
follows a Model-View-Controller (MVC) software architecture

目的:連結網頁
Xcode: ver 4.3
結果畫面:http://www.xxxxx.com/
Code: 在ViewDidLoad 使用UIWebView, loadRequest