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 OFFI also want to represent list of shops with star sign on each row(like favorite star) example:
*(favorit star) ZARA
*(favorit star) POLOthere 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:
- Create a UITableViewCell subclass in Interface Builder and return that cell in the cellForRowAtIndexPath.
- 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.
精彩评论