Wang Ming
Wang Ming
目前不支持 可以在 ``` - (void)pageController:(WMPageController *)pageController didEnterViewController:(__kindof UIViewController *)viewController withInfo:(NSDictionary *)info; ``` 通过WMMenuView的这个接口获取item设置font - (WMMenuItem *)itemAtIndex:(NSInteger)index;
忽然变粗?目前是不支持平滑过渡的
Hey, @misuqian Can u give more information so I can figure out much more easier? In which situation you got this message? and the log?
Sorry, too busy these days and dont have time to make any enhancements. I will make the swift version better when have time. 😭
我的另一个项目会更好的满足你的需求,移步:https://github.com/wangmchn/WMPageController
可以 设置viewFrame就行 然后自己在PageController上面添加视图
WMPageController是UIViewController的子类,init后的用法跟UIViewController一样。 你应该用WMPageController代替self这个控制器。而不是在self上添加pageController的view。 如果要硬要这么显示(这样不合理),尝试先添加成为self的子控制器 ``` objective-c [self addChildViewController:pageController]; [pageController didMoveToParentViewController:self]; ```
这个是用的PageView 用pageController的话,创建一个控制器(比如xxxpageController)继承自Pagecontroller,设置viewFrame属性, 后在xxxpageController的viewdidload里面加载自己的视图
你好 第一个cell的frame是在之后才确定的 `initWithIdentifier`的时候还没有确定`frame` ``` objective-c if (i == 0) { YKPageCell *cell = [self.dataSource pageView:self cellForIndex:i]; cell.frame = frame; [scrollView addSubview:cell]; [self.displayCells setObject:cell forKey:@(i)]; } ```
不是的,我的意思是,cell的frame会在之后被YKPageView自动设置 `[self.dataSource pageView:self cellForIndex:i];`是datasource创建并return的cell 之后,如果i==0(是第一个cell) cell的frame会被自动设置