自定义UIPageController
来源:互联网 发布:老虎板王能埋入数据吗 编辑:程序博客网 时间:2024/06/04 18:30
首先导入两个封装好的文件,在这里我的文件叫做BluePageControl.h和BluePageControl.m,继承于UIPageControl,重写了以下的方法。
#import ;
@interface
{
UIImage
UIImage
}
@end
BluePageControl.m:
#import"QBluePageControl.h"
@implementation
- (id)initWithFrame:(CGRect)frame
{
self
_activeImage
_inactiveImage
}
- (void)updateDots
{
for
UIImageView* dot = [self.subviewsobjectAtIndex:i];
if
dot.image
else
dot.image
}
- (void)setCurrentPage:(NSInteger)currentPage
{
}
@end
使用的时候在主程序中#import
创建:_pageControl
方法二:
-(void)viewDidLoad{
}
-(void)pageChanged:(UIPageControl*)pc{
}
- 自定义UIPageController
- UIPageController
- UIPageController
- UIPagecontroller
- IOS UIPageController
- IOS UIPageController
- IOS UIPageController
- 转载 -uipagecontroller
- 28.UIScrollView和UIPageController
- UIpageController基本属性
- UIPageController的使用
- UIScrollView和UIPageController
- iOS之UIPageController的使用
- UI控件 UIPageController ,控制页数
- UIPageController和UIScrollView结合使用
- IOS控件的应用UIPageController与UIScrollView
- IOS UIScrollView与UIPageController配合使用
- UIPageController与UIScrollView的联合使用
- linux创建用户、用户组
- 软考--考后总结
- 二叉树的建立和基本操作
- 枚举
- 英特尔发布智能体恤 能监测用户情绪
- 自定义UIPageController
- Linux重启、关机命令
- 程序员要不断学习和实时积累
- windos 修改用户名为中文
- motorola scanner datasheet相关解释 One Discrete Length, Two Discrete Lengths,Length Within Range
- “大型票务系统”和“实物电商系统”在和企业其他部门关系的联系和误区
- 第三篇——第二部分——第四文 配置SQL Server镜像——非域环境
- RTP 与RTCP 解释
- scala编程系列(1)-scala编程入门初步