iOS vs Android

IOS vs Android


IOS view all use UI tool in storyboard


IOS mapping code with UI element   in 

“Referencing page” by manually drag the code property with storyboard UI element

The inside logic should be storyboard xml config the Object Id to class.

(in android, we should manually write the id in xml and manually write the code findById in java)


Android, every activity to find the view layout (the configuration), 

IOS, every story board view (like the configuration file)  to find the controller class

(So in IOS, no need to write setLayout(main_layou.xml), iOS will do it according to storyboard custom class)

(Meanwhile, also no need write findElementById(),  the binding if config in storyboard)


IOS has bind logic inside storyboard

  1. it will make it hard to find, not like search code
  2. it also allow write code to bind, so there are two ways to bind, code has high priority, it will confuse
  3. it also has some config inside storyboard, like tableview identifie
  4. not easy to document and descript, difficult to learn
  5. Does IOS support prefined color value?

IOS has the view element config inside storyboard (like a lot of tableview property, enableUserInteraction, refresh view, define statice table)

IOS has the action inside storyboard (like segue, don’t need write button click jump)


IOS view controller page jump use segue, data are transfer by view controller class method


ViewDidLoad == OnCreate  only create once

ViewDidAppear == OnStart   calls every time appear


(Android layout combination could 1. modularize the whole page to small pieces  2. reuse the layout in different page)

IOS can’t just write include xib inside storyboard

(Like android layout include layout, can’t simple do the layout combination)

The common way is that xib (a small UI element) has its code implementation to be a view.  the view class wrapper layout and code.  In storyboard define the component custom class to that class.

(Like android create custom view and use  custom view in layout)

But iOS has a intermediate way:  not create the view class, but change the xib owner to be your view controller, you need to write loadNib and addView in view controller programmatically, 

(Corresponding to android layout modularize the whole page to small pieces and the piece won’t use in other pages)


https://savvyapps.com/blog/how-to-start-android-development-with-an-ios-background


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
iOSAndroid是两种不同的操作系统。iOS是由苹果公司开发的操作系统,主要用于苹果的iPhone和iPad等设备。而Android是由谷歌开发的操作系统,被广泛应用于许多不同品牌的智能手机和平板电脑上。这两个操作系统在设计理念和功能上有一些不同。 iOS的设计目标是让软件和硬件完美结合,只能运行在苹果公司特定的设备上。这种紧密的硬件和软件整合,使得iOS在用户体验和性能方面表现出色。而Android的设计目标是打造一款通用性非常好的系统,可以在多种不同品牌的设备上运行。由于要适配多种不同的硬件,Android的通用性较好,但在性能方面可能会有一些差异。 Android的应用程序运行在RAM(随机存储器)中,这可能导致在某些情况下,Android会出现一些卡顿现象。而iOS的应用程序则更加注重性能和流畅度,因此在使用中往往不会出现卡顿问题。 总结来说,iOSAndroid是两种不同的操作系统,各有特点。iOS注重软硬件结合,追求完美的用户体验和性能;而Android则更注重通用性,适用于多种不同品牌的设备。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [AndroidIOS的区别](https://blog.csdn.net/weixin_50829653/article/details/130780980)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [Cross Platform Replay Kit Easy Screen Recording on iOS Android ](https://download.csdn.net/download/QQ260185343/85051140)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值