如何从此控制器中删除点?
- (voID)vIEwDIDLoad{ [super vIEwDIDLoad]; // Do any additional setup after loading the vIEw. self.dontShowChecked = NO; self.imagesArray = @[ ..]; self.textsArray = @[ ........ ]; // Create page vIEw controller self.pageVIEwController = [self.storyboard instantiateVIEwControllerWithIDentifIEr:@"WTPageController"]; self.pageVIEwController.dataSource = self; WTDetailVIEwController *startingVIEwController = [self vIEwControllerAtIndex:0]; NSArray *vIEwControllers = @[startingVIEwController]; [self.pageVIEwController setVIEwControllers:vIEwControllers direction:UIPageVIEwControllerNavigationDirectionForward animated:NO completion:nil]; // Change the size of page vIEw controller CGfloat delta = [[PSDeviceInfo sharedInstance] is_iPhone] ? 50. : 50; self.pageVIEwController.vIEw.frame = CGRectMake(0,40.,self.vIEw.frame.size.wIDth,self.vIEw.frame.size.height - delta); [self.vIEw addSubvIEw:_pageVIEwController.vIEw]; [self.pageVIEwController dIDMovetoParentVIEwController:self];}
点似乎自动添加自身并干扰该区域中的其他UI元素.我该如何完全删除它们?
解决方法 一旦您的UIPageVIEwController数据源实现以下方法,就会添加这些点:presentationCountForPageVIEwController:presentationIndexForPageVIEwController:
避免实现那些摆脱UIPageControl点.
总结以上是内存溢出为你收集整理的ios – 从UIPageViewController中删除页面指示器全部内容,希望文章能够帮你解决ios – 从UIPageViewController中删除页面指示器所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)