I have an view in my App which has a number of buttons based on the number of items returned by the server. So if the server returns say 10 items, there should be 10 buttons
Shouldn't you be calling initWithFrame: rect instead of:
initWithFrame: rect
HopitalButton* hb = [[HopitalButton alloc] init];