I'm writing my first iPhone application and have worked my way through some books.
I'm working on a navigation-based app, and I was wondering:
(1) Is it possible to use buttons instead of a table to activate the navigation?
(2) If so, how do I add the littl开发者_StackOverflow中文版e disclosure indicators to a button? And how do I make the buttons look a bit more fancy than a rounded rect button (e.g. make the button colored and glossy)?
Yes it is possible to navigate using buttons. See
-[UINavigationController pushViewController:animated:]
You can use
+[UIButton buttonWithType:]
and specifyUIButtonTypeDetailDisclosure
for a disclosure button. As for colored and glossy buttons they are not supported in the current SDK (ios 4), but you can use a custom glossy and colored image or implement your own drawing code (see below for link).
Here is an article from Cocoa with Love about creating glossy buttons.
精彩评论