2 articles Tag Objective-c

UITextField allowing only decimal characters

If you need to limit user input on a UITextField to decimal characters only, either for currency or something else here’s a bit of code that accomplishes that.






Continue reading →

Adding a TableView to a View in Xcode 4.2

Adding a TableView to a View in Xcode 4.2

Sometimes you need something else to be shown on the screen besides just a TableView, maybe you want a search bar at the top or a ToolBar or a bunch of other elements. In this case using a UITableViewController as your view won’t do it. This is a simple guide of one way to solve this (I’m sure there might be others).











Continue reading →