autoLayout

Swift - AutoLayout

目的:安排調整版面VIEW的尺寸位置不寫code

View無論在直式、橫式的畫面,其padding及margin長寬都一樣,不會改變。

1. New ProjectSingleView Application

2. Product Name:AutoLayoutSample

Patty 發表在 痞客邦 留言(0) 人氣()

Webpage1.png

Swift - Webpage

目的:顯示網頁

1. New ProjectSingleView Application

2. Product Name:Webpage

Patty 發表在 痞客邦 留言(0) 人氣()

SimpleCalculator結果1

Swift - SimpleCalculator

目的:簡易折扣計算

操作輸入值-->選取折扣%-->按'計算'button' 

1. New ProjectSimpleCalculator/Swift

2.畫面配置

Patty 發表在 痞客邦 留言(0) 人氣()

Swift

 比較Objective-C和Swift in Xcode的不同:

Swfit:

1.New Project:

2.Single View Application:

3.Language:Swift

Patty 發表在 痞客邦 留言(0) 人氣()

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);

Patty 發表在 痞客邦 留言(0) 人氣()

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"];

Patty 發表在 痞客邦 留言(0) 人氣()

AFP(Apple Filing Protocol): was the primary protocol for file services

 supported: 

SMB (Server Message Block), 

NFS (Network File System), 

FTP (File Transfer Protocol),

Patty 發表在 痞客邦 留言(0) 人氣()

何謂Cocoa Touch: 

is a UI framework for building software programs to run on the iPhoneiPod 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

Patty 發表在 痞客邦 留言(0) 人氣()

webView結果

目的:連結網頁

Xcode: ver 4.3

結果畫面:http://www.xxxxx.com/

Code: 在ViewDidLoad  使用UIWebView, loadRequest

Patty 發表在 痞客邦 留言(0) 人氣()

dos

Patty 發表在 痞客邦 留言(0) 人氣()

dos

Patty 發表在 痞客邦 留言(0) 人氣()

dos

Patty 發表在 痞客邦 留言(0) 人氣()

1 2 3 4
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。