标签:
NS_CLASS_AVAILABLE_IOS(2_0) @interface UIPageControl : UIControl {
@private
NSMutableArray* _indicators;
NSInteger _currentPage;
NSInteger _displayedPage;
struct {
unsigned int hideForSinglePage:1;
unsigned int defersCurrentPageDisplay:1;
} _pageControlFlags;
UIImage* _currentPageImage;
UIImage* _pageImage;
}
- (UIPageControl *)pageControl{
if (_pageControl == nil) {
_pageControl = [[UIPageControl alloc]init];
_pageControl.backgroundColor = [UIColor whiteColor];
[_pageControl setValue:[UIImage imageNamed:@"compose_keyboard_dot_normal@2x"] forKey:@"_pageImage"];
[_pageControl setValue:[UIImage imageNamed:@"compose_keyboard_dot_selected@2x"] forKey:@"_currentPageImage"];
[self addSubview:_pageControl];
}
return _pageControl;
}
标签:
原文地址:http://www.cnblogs.com/yintingting/p/4565667.html