self.page = [[UIPageControl alloc] initWithFrame:CGRectMake(50, 500, 300, 50)];
self.page.backgroundColor = [UIColor blackColor];//在颜色插件里找调透明度这样不会将透明进行子传递;
//默认在第几个点
self.page.currentPage = 2;
//一共几个
self.page.numberOfPages = 6;
[self addSubview:self.page];