开发者

Iphone GUI list of objects view

I need some help with GUI Iphone development I am currently develop iphone application and finish with the logic side of the app. now i am trying to handle the GUI side but i cant understand few things.

i need to represent list of shops that each shop will display on row and for each row i need button that can be ON or OFF (very similar to the setting -> Airplane Mo开发者_如何学编程de that have ON OFF button). example:

ZARA ON OFF

POLO ON OFF

I also want to represent list of shops with star sign on each row(like favorite star) example:

*(favorit star) ZARA

*(favorit star) POLO

there is any way to do so in interface builder? if some one can give me code exaple it will be great


For custom controls in UITableViewCells you can take a few different paths:

  1. Create a UITableViewCell subclass in Interface Builder and return that cell in the cellForRowAtIndexPath.
  2. Use the standard UITableViewCell accessoryView and add a UISwitch as a subview.

If you want a more customized cell (multiple controls, e.g. a switch and a star) I would prefer using Interface Builder because I can lay out the controls visually.


UISlider.

I don't know of built-in stars, but you can use a toggleable UIButton and your own star graphics.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜