iOS vs Android
来源:互联网 发布:3d软件下载. 编辑:程序博客网 时间:2024/06/15 17:57
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
- it will make it hard to find, not like search code
- it also allow write code to bind, so there are two ways to bind, code has high priority, it will confuse
- it also has some config inside storyboard, like tableview identifie
- not easy to document and descript, difficult to learn
- 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
- ios vs android
- iOS vs Android
- iOS vs Android 系统架构
- OS市场大PK:Windows VS. iOS VS. Android
- VisionMobile:开发者优先平台选择iOS vs Android vs HTML5
- Android 4 vs iOS 5,谁将笑到最后
- iOS VS Android:一场安全的战争
- iOS VS Android:一场安全的战争
- iOS VS Android:一场安全的战争
- Android 4 vs iOS 5,谁将笑到最后
- Who's winning? IOS vs Android
- 生命周期对比 ios UIViewController VS android activity
- VS 开发Android,IOS,Mac工具 Monn
- App开发那些事--iOS VS android
- 两个平台浏览器大PK: Android 4 VS. iOS 5
- iOS vs. Android ICS: Hardware Accelerated Graphics Pipelines
- iOS vs. Android,耀眼双子星,亮点各不同
- 从开放封闭观点看 iOS vs Android
- 项目启动失败,报错:java.net.BindException:Address already in use : JVM_Bind <null>:8081
- Mac shortcut
- [BZOJ 2956]模积和 分块+数学
- Codeforces Round #402 (Div. 2) A+B
- 简单工厂和单例设计模式微结
- iOS vs Android
- WindowsXP问题的精彩问答
- 存储单位bit、Byte,word关系
- QML中WebView的runJavaScript() 函数使用注意
- 守护进程的创建,服务器关闭不影响客户端的连接
- Objective c
- 【LeetCode】34. Search for a Range
- ConcurrentModificationException
- Ios