search

Home  >  Q&A  >  body text

How to use iOS weex?

The official documentation of weex is poor. It is okay to simply render a page, but I don’t know how to understand it in depth.
Do you have any recommended tutorials that you can refer to? For example, let’s talk in detail about what a Handler is, what a module is, and what a Component is.
If there are multiple view controllers, how to use weex for navigation?

ringa_leeringa_lee2780 days ago933

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-17 10:08:27

    Thanks for the invitation! During the research process, I mainly studied the official website documents. Let me list a few for you:
    Official reference: http://weex.apache.org/cn/references/ http://weex.apache.org/cn/references/
    To-do:https://github.com/tralves/weex-todo-list
    虾粥:http://xiazhou.me/tags/3139533465.htmlTo-do: https://github.com/tralves/weex-todo-list

    Shrimp porridge: http://xiazhou.me/tags/3139533465.html


    ======================
    Another important thing is to come here often to see other people ask questions and help others answer questions. What is a Handler, what is a module, and what is a Component? These issues are all mentioned in the iOS extension
    . I can give you a brief introduction: Handler:主要是指iOS下的Protocal,例如WXImgLoaderProtocol,实现的是图片下载等能力,类比android则是Adpter,是WeexSDK为开发者提供的全局性扩展的处理器。例如导航,图片,网络等都有对应的Protocal来处理。
    Module:主要是指非UI层面的处理模块,例如要调用摄像头、打开蓝牙、获取UUID等;
    Component: 主要是指UI层面的组件,例如在绘制UI方面不够用了,可以扩展一个 <MyList>...</MyList>Handler: Mainly refers to the Protocol under iOS, such as WXImgLoaderProtocol, which implements image downloading and other capabilities. It is analogous to Android and Adpter, which is the global solution provided by WeexSDK for developers. scalable processor. For example, navigation, pictures, networks, etc. all have corresponding protocols to handle them.

    Module: Mainly refers to non-UI level processing modules, such as calling the camera, turning on Bluetooth, obtaining UUID, etc.;

    Component: Mainly refers to UI-level components, For example, if it is not enough for drawing UI, you can extend a <MyList>...</MyList>. Currently, the official provides a total of 16 Tags. If not enough, you can expand it yourself. Since the introduction of Vue2.0, there have been very few expansion requirements at the Tag level, and they can be completely handled at the Vue level.

    🎜Finally, thank you for the invitation to answer. I hope to study the functionality of WeexSDK and read the documentation patiently. 🎜

    reply
    0
  • Cancelreply