Comparison between iPhone and Android

Source: Internet
Author: User
Reprinted: http://www.cxy.me/doc/5558.htm Framework IPhone
      • CocoaFoundation (Mac OS XCommon)
      • Uikit
Android
      • JavaSDK
      • AndroidFramework
MVC IPhone
      • Model

        • Arbitrary
      • View
        • Parent class of uiview
        • InterfaceTools designed by builer
        • Save the design information to the XIB file (XML)
      • Controller
        • Uiviewcontroller
        • Uinavigationcontroller
        • Uiimagepickercontroller
        • Uitabbarcontroller
        • Uitableviewcontroller
Android
      • Model

        • Contentprovider
      • View
        • Android. View,Android.Widget
        • LayoutXML
        • Save the designed information to an XML file
      • Controller
        • Activity
        • Listactivity
        • Mapactivity
        • Expandablelistactivity
        • Tabactivity
View Installation Method
    • Comparison between the preview method of Android and iPhone
Controller usage

Label setting text Columns

IPhone
  @ interface  hogeviewcontroller: uiviewcontroller {uilabel * label;} @ property (nonatomic, retain) iboutlet uilabel * label;  @ end   @ implementation  @ synthesize label; /* interface builder  -(void) loadview { }  */ - (< SPAN class = "syntype"> void ) viewdidload {[ super  viewdidload]; label. TEXT =  @ "Hello    world   ! ";}< SPAN class =" synidentifier ">- ( void ) dealloc { // memory release  
[Label release]; [SuperDealloc];}@ End
Android
 
PublicClassHogeactivityExtendsActivity {PrivateTextview label;ProtectedVoidOncreate (bundle savedinstancestate ){Super. Oncreate (savedinstancestate); setcontentview (R. layout. Main); label = (textview) findviewbyid (R. Id. Label); label. settext ("Hello world! ");}}
Event IPhone
      • Target action
      • Responder chain
Android
      • Event
Event Installation
    • Android and iPhone eventsLibrary
IPhone
      1. Loadview
      2. Viewdidload
      3. Viewwillappear
      4. Viewdidappear
      5. Viewwilldisappear
      6. Viewdiddisappear
Android
      1. Oncreate
      2. Onstart
      3. Onresume
      4. Onpause
      5. Onstop
      6. Ondestroy
Memory events IPhone
      • Didreceivememorywarning
Android
      • Onlowmemory
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.