Need help understanding to create a mind mapping or flow charting app [closed]

情到浓时终转凉″ 提交于 2019-12-25 03:58:22

问题


I want to create a mind mapping like app in iOS, but not sure how I am suppose to do that there are several questions in mind.

  1. Should I use quartz2d?
  2. How quartz2d will manage dynamic drawing placing, like if I want to move something then lines or connections will move accordingly.
  3. How will flow chat expand, like how it will expand and user will keep getting the scrolling so drawing is not limited to fix area.

回答1:


  1. Yes
  2. You have to keep track of lines and objects in a model, and update them appropriately when things are added/deleted/moved.
  3. Subclass UIScrollView and override the drawRect method to draw the flow chart. Change the contentSize to expand the drawing area as necessary, which enables scrolling at the same time. Also, you can enable the zoom feature if desired.


来源:https://stackoverflow.com/questions/24819339/need-help-understanding-to-create-a-mind-mapping-or-flow-charting-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!