2011年2月24日 星期四

iOS-programming_question

1). Iphone 開發方式?
XCode , 搭配 Git
2). Iphone 如何與網路溝通? 實例?
httprequest ?
http://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/CFHTTPTasks/CFHTTPTasks.html
CFNetwork Concepts
http://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/Concepts/Concepts.html#//apple_ref/doc/uid/TP30001132-CH4-DontLinkElementID_13

3). Iphone 如何取得網站上的資料, 並進行解析?
    . XML 如何進行交換, 實例?
http://developer.apple.com/library/ios/#samplecode/SeismicXML/Introduction/Intro.html  
  
    . 如何將網站上的資料和圖片下載至手機裡, 以供使用?
Working with Streams
http://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/CFStreamTasks/CFStreamTasks.html#//apple_ref/doc/uid/TP30000230-61466

    . 如何將手機上的圖片上傳至網站裡?

4). SQLite 如何應用實做? 如何將交換(XML)所得資料寫入 SQLite?
http://iphoneipad-develop.blogspot.com/2011/02/using-sqlite.html

5). Iphone, Ipad 的開發方式有何不同? 我該如何著手開發 Ipad?
6). 帶領我和榆翔實作一個小的 Project, 例如:產品資訊(含圖片)下載 Demo App.
7). 量 GG App 的實做是否可能?
8). 如何撰寫 Iphone 開發文件?
9). Object-C 如何使用 base64 編碼?
10). 委派的實作與原理

A: 請delegate幫我摘水果
A: 要當我的delegate必須遵守我的protocol 也就是會爬樹

B: 我來當A的delegate
Compiler: B你有遵守protocol嗎
B: 有 我會爬樹

B to A: 我摘到水果了 請吃

C: 我也要當A的delegate
Compiler: C你有遵守protocol嗎
C: 沒有 我不會爬樹
Compiler: 那C你會害我們crash
Basically, delegation is a way of allowing objects to interact with each other without creating strong interdependencies between them, since this makes the design of your application less flexible. Instead of objects controlling one another, they can have a delegate which they send (or delegate) messages to, and the delegate does whatever they do, in order to respond and act to this message, and then usually return something back to the other object.
Delegation is also a better alternative to subclassing. Instead of you having to create your own custom classes to slightly alter the way that other objects behave, or pass them data, delegation allows objects to send messages to their delegates to do work for them without the overhead of creating subclasses to make minor changes to other objects.
Of course, the main disadvantage of delegation is that the delegate methods available are dependent on what the Apple engineers foresee as being useful and what common implementations they expect people to need, which imposes a restriction on what you can achieve. Although, as Quinn Taylor pointed out, this is specific to the Cocoa frameworks and so doesn't apply in all situations.
If delegation is an option over subclassing, then take it, because it's a much cleaner way to manage your code and interactions between objects.

11). Object-C 如何判斷變數型態? ( C++ 是 typeof ) ->  (instanceof) ?
Try [myObject class] for returning the class of an object.
[myObject isKindOfClass:[NSString class]]
[myObject isKindOfClass:[UIImageView class]]

12). 如何設計一支 APP, 能在網頁上直接點圖下載? 或是點了圖後, 會出現是否下載的對話框?
13). Xcode 裡選擇開發型態的差別:什麼時候該用 application based on windows? ... 什麼是時候該 ...

14). 如何在 Object-C 裡使用 base64 或其他編碼, 進行編解碼 ?

15). Open GL 如何使用? or 2D 繪圖?
http://www.discuss.com.hk/archiver/?tid-12945915.html

沒有留言:

張貼留言