ios – 从UIPageViewController中删除页面指示器

ios – 从UIPageViewController中删除页面指示器,第1张

概述我在iOs应用程序中使用页面视图控制器. 如何从此控制器中删除点? - (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.dontShowChecked = NO; self.imagesArray = @[ ..]; 我在iOs应用程序中使用页面视图控制器.
如何从此控制器中删除点?

- (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中删除页面指示器所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1005009.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存