Hi All,
I have this:
@interface HomePage : UIViewController<UITableViewDelegate, UITableViewDataSource> {
UITableView *myTable;
NSMutableArray *data;
}
@property (nonatomic, retain) IBOutlet UITableView *myTaböe;
@property (nonatomic, retain) NSMutable *data;
and then I have connected via IB the myTable with datasource and delegate in "File's Owner". I am then initializing data to an empty array in the viewDidLoad method.
After I perform a HTTP call to retrieve some data, add items to the data and:
int i= 0;
while(barfoo is true){
[data insertObject:r atIndex:i];
NSArray *insertIndexPaths = [NSArray arrayWithObjects:[NSIndexPath indexPathForRow:i inSection:0],nil];
UITableView *tv = (UITableView *)self.myTable;
[tv beginUpdates];
[tv insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationRight];
[tv endUpdates];
i++;
}
but nothing happens..... why?