UIActionSheet UIPageControl

--------------------------------------------------------------------------------UIActionSheet--------------------------------------------------------------------------------

1:UIActionSheet 去掉红颜色按钮的两种方式:

  一:  destructiveButtonTitle:nil指向nil

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:alert_TitleTip delegate:self cancelButtonTitle:alert_Cancel destructiveButtonTitle:nil otherButtonTitles:@"123",@"321",nil];
 二:  设定指定某个按钮为红色按钮,当于设置的值大于现有的按钮. 将不会显示红色按钮.同样达到效果.

actionSheet.destructiveButtonIndex = 10;  

--------------------------------------------------------------------------------UIActionSheet--------------------------------------------------------------------------------


--------------------------------------------------------------------------------UIPageControl--------------------------------------------------------------------------------

1:初始化时如果想让控件直接显示在中间,并且根据数量自适应扩散只需要设置父View 宽的一半即可.

pageControl= [[FEUIPageControlView alloc] initWithFrame:(CGRect){self.frame.size.width/2,self.frame.size.height - 50,0,0}];
--------------------------------------------------------------------------------UIPageControl--------------------------------------------------------------------------------

你可能感兴趣的:(UIActionSheet UIPageControl)