美文网首页iosiOS_UIKit
UIPageControl圆点

UIPageControl圆点

作者: 絮语时光杨 | 来源:发表于2018-05-14 13:49 被阅读0次

    @property(nonatomic) NSInteger numberOfPages; // default is 0
    @property(nonatomic) NSInteger currentPage; // default is 0. value pinned to 0..numberOfPages-1

    @property(nonatomic) BOOL hidesForSinglePage; // hide the the indicator if there is only one page. default is NO

    @property(nonatomic) BOOL defersCurrentPageDisplay; // if set, clicking to a new page won't update the currently displayed page until -updateCurrentPageDisplay is called. default is NO

    • (void)updateCurrentPageDisplay; // update page display to match the currentPage. ignored if defersCurrentPageDisplay is NO. setting the page value directly will update immediately

    • (CGSize)sizeForNumberOfPages:(NSInteger)pageCount; // returns minimum size required to display dots for given page count. can be used to size control if page count could change

    @property(nullable, nonatomic,strong) UIColor *pageIndicatorTintColor NS_AVAILABLE_IOS(6_0) UI_APPEARANCE_SELECTOR;
    @property(nullable, nonatomic,strong) UIColor *currentPageIndicatorTintColor

    相关文章

      网友评论

        本文标题:UIPageControl圆点

        本文链接:https://www.haomeiwen.com/subject/gqoddftx.html