开发者

Is there a way to drag the items of a UITableView up and down to change their order ?

开发者 https://www.devze.com 2023-03-27 01:37 出处:网络
Is there a way to drag the items of a UITableView up and down to change their order ? See the example (the small arrows indicate the items are movable): http://cl.ly开发者_开发百科/972U

Is there a way to drag the items of a UITableView up and down to change their order ?

See the example (the small arrows indicate the items are movable): http://cl.ly开发者_开发百科/972U

Or should I use another user interface widget ?

thanks


Yes, you can. This other stackoverflow question goes over the same thing. Basically, you create the UITableView just like you've been doing, but when you create a cell, set the showsReorderControl value of the cell to TRUE and the reordering bars will appear.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号