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--------------------------------------------------------------------------------

时间: 2024-07-29 10:56:59

UIActionSheet UIPageControl的相关文章

iOS - UIKit

1.UIKit 框架基本结构 1)控件 屏幕上的所有 UI 元素都叫做控件(也有叫做视图.组件),比如按钮(UIButton).文本(UILabel)都是控件. 为了便于开发者打造各式各样的优秀 App,UIKit 框架提供了非常多功能强大又易用的 UI 控件,但并不是每一个都很常用,有些控件可能 1 年内都用不上,有些控件天天用,比如 UIButton.UILabel.UIImageView.UITableView 等等. 每个控件都是个容器,能容纳其他控件.内部小控件是大控件的子控件,大控件

IOS UIPageControl(分页控制器) 用法总结

UIPageControll 是继承于UIControl的一个IOS系统UI控件,可以提供给开发者设计分页效果的功能. 初始化方法 UIPageControl * page = [[UIPageControl alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; 设置控制器页数(默认为0) @property(nonatomic) NSInteger numberOfPages;   设置当前所在页码 @property(nonatomic)

用block将UIAlertView与UIActionSheet统一起来

用block将UIAlertView与UIActionSheet统一起来   效果   1. 将代理方法的实例对象方法转换成了类方法使用 2. 要注意单例block不要长期持有,用完就释放掉   源码 https://github.com/YouXianMing/UIInfomationView // // UIInfomationView.h // Alert // // Created by YouXianMing on 15/6/23. // Copyright (c) 2015年 You

iOS中的表单按钮选项UIActionSheet常用方法整理_IOS

什么是操作表单?看图: 一看图就明白了,毋需多说. 复制代码 代码如下: UIActionSheet* mySheet = [[UIActionSheet alloc]                             initWithTitle:@"ActionChoose"                              delegate:self                              cancelButtonTitle:@"Cance

iOS App开发中的UIPageControl分页控件使用小结_IOS

分页控件是一种用来取代导航栏的可见指示器,方便手势直接翻页,最典型的应用便是iPhone的主屏幕,当图标过多会自动增加页面,在屏幕底部你会看到原点,用来只是当前页面,并且会随着翻页自动更新.一.创建 复制代码 代码如下: UIPageControl* myPageControl = [[UIPageControl alloc]initWithFrame:CGRectMake(0.0, 400.0, 320.0, 0.0)];  二.设置属性页面数目 复制代码 代码如下: myPageContro

UIPageControl+UIScrollView

UIPageControl继承了UIControl基类,默认属于活动控件,它可以与用户进行交互,经常与UIScrollerView结合使用,在实际项目也是经常使用的.当把UIScrollView的pagingEnabled设置为YES之后,UIScrollView至少每次滚动一页.此时通常结合UIPageControl使用,UIPageControl控件会充当两个功能. 使用UIPageControl显示当前的UIScrollView正在显示第几页. 当用户点击UIPageControl控件时程

iOS图片轮播UIScrollView+UIPageControl

该方法实现了图片的轮播效果: pictureLoop 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110

手势-iOS 8中自定义的继承于UIActionSheet的UIDatePicker,无法滑动选择日期和时间

问题描述 iOS 8中自定义的继承于UIActionSheet的UIDatePicker,无法滑动选择日期和时间 iOS 8中自定义的UIDatePicker(继承于UIActionSheet),无法滑动选择日期和时间,自定义的datepicker显示在View上,而View显示在window上,如果写了touchesBegan方法,则会消失,总之无法响应手势事件了,求解!!!

IOS中UIActionSheet使用详解

IOS中UIActionSheet使用方法详解 一.初始化方法 - (instancetype)initWithTitle:(NSString *)title delegate:(id<UIActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle destructiveButtonTitle:(NSString *)destructiveButtonTitle otherButtonTitles: