Q:

How to dynamically add a UIView

Hello I want to have a table of UILabel. The first column is the name of an item and the second is the value of that item. The problem is I don't know how many rows I need until the user logins in. I know how to add rows to a table in Android however it seems impossible to do with the iPhone. How would I achieve this? 

A:

Consider using a UITableView with custom cells.
The advantage is that, depending on your data source, a table view can automatically update when your data changes. An event-driven architecture (ie: update table when data is available/changes) is in-line with objective-c land.
For examples of custom cells: http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
For tutorials on making a UITableView backed by a data source, I'd point you to the excellent Stanford iOS programming course, available on iTunes U.

