uiviewcontroller - UITableViewController refresh control not showing -
i've implemented uitableview controller , reason refresh control isn't showing @ top there i've got wrong?
scoresnotificationspage
- (id)initwithframe:(cgrect)frame { self = [self initwithstyle:uitableviewstyleplain]; self.view.backgroundcolor = [uicolor whitecolor]; self.view.frame = frame; return self; } - (void)viewdidload { [super viewdidload]; uirefreshcontrol *refreshcontrol = [[uirefreshcontrol alloc] init]; refreshcontrol.tintcolor = [uicolor redcolor]; // assign refresh control table view controllers refresh property. [refreshcontrol addtarget:self action:@selector(changesorting) forcontrolevents:uicontroleventvaluechanged]; self.refreshcontrol = refreshcontrol; }
mainviewcontroller
adding scoresnotificationspage with
[self.view addsubview:scoresnotificationspage.view];
Comments
Post a Comment