Tag Archive for 'UIButton'

UIButton in UITableView Footer

Once upon a time, there was a pretty UITableView within my iPhone user interface. This table included some UITableViewCells which were used to provide some information of a specific data record. At this time I thought that it would be nice to have a big red delete button at the end of the table (like we can locate it in the edit mask of the Apple Calendar App).

To realize such a button at the end of the table we can simply use the ability to define our own footer view for each section within a UITableView. The next steps describe how we can do that for a single section.

Continue reading ‘UIButton in UITableView Footer’

Multiple UIBarButtonItems in UINavigationBar

Ever wondered how to place more than one button into a navigation bar in your app? I know it doesn’t look neat at all! The class UIBarButtonItem allows us to initialize a new instance with a custom view. This instance can be used as a kind of a toolbar and you can put as much buttons as you like in there. The toolbar again can be used for the rigthtBarButtonItem or leftBarButtonItem. Please remember:

  • Keep your interface clean and simple and
  • Be consistent with the iPhone Human Interface Guideline

For those guys, who still demand on more than one button on the left or right side of a navigation bar, the following code snippet could be useful.

Continue reading ‘Multiple UIBarButtonItems in UINavigationBar’

Glossy UIButtons (for iPhone)

Sadly, we couldn’t find the glossy buttons which are used e.g. in the UIActionSheet within the iPhone SDK. For this case we made some graphics to get along with that. You will find the images below and you can use them under the creative commons license as mentioned at the end of this post.

Creative Commons License
Glossy Buttons by Andreas Katzian are under Creative Commons 3.0 License.