Home  >  Q&A  >  body text

ios - 这个效果该如何实现


如图,这个菜单效果,置于UITableView 的 Section中,
如果作出这个 菜单的效果呢,商家不同,菜单内容的行数row也不同。

希望能给一个详细点的指导,拜托了!

PHP中文网PHP中文网2741 days ago298

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 09:07:38

    First of all, you must have data, right? For example, it contains business data (staple food, dishes, etc.), then it may be a dictionary. The staple food in the dictionary is an array, right, and the dishes are also arrays, right?
    Suppose you have three sections now, then don’t you have three arrays, staple food, dishes, and others? How many rows are there in the staple food, that is, how many data are there in the array of your staple food, right?
    You should understand it this way.

    reply
    0
  • Cancelreply