Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ->@property (nonatomic ,strong) NSMutableArray *name;
- - (id)initWithFrame:(CGRect)frame viewName:(NSInteger)viewDecide datasourceName:(NSMutableArray *)nameRef
- {
- }
- self.name=[NSMutableArray alloc]initWithObjects:@"1",@"2",@"3", nil];
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
- {
- return[self.name count];
- }
- [strongSelf.name insertObject:@"something" atIndex:0];
- [strongSelf.tableViewDataView1 insertRowsAtIndexPaths:[NSArray arrayWithObjects:[NSIndexPath indexPathForRow:0 inSection:0], nil] withRowAnimation:UITableViewRowAnimationLeft];
- and for deleting i used
- [strongSelf.name removeObjectAtIndex:0];
- [strongSelf.tableViewDataView1 deleteRowsAtIndexPaths:[NSArray arrayWithObjects:[NSIndexPath indexPathForRow:0 inSection:0], nil] withRowAnimation:UITableViewRowAnimationLeft];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement