UI<04> - UIPageControl<04>

//声明对象
@property (nonatomic,strong) UIPageControl *pagecontrol;

//初始化
    self.pagecontrol = [[UIPageControl alloc] init];
    self.pagecontrol.backgroundColor = [UIColor greenColor];
      
    self.pagecontrol.frame = CGRectMake(0, 0, 100, 37);
    self.pagecontrol.center = CGPointMake(self.view.frame.size.width/2.0, self.view.frame.size.height/2.0);
    //总页数
    self.pagecontrol.numberOfPages = 5;
    //当前显示页
    self.pagecontrol.currentPage = 1;
    //其他页码指示器的颜色
    self.pagecontrol.pageIndicatorTintColor = [UIColor purpleColor];
    //当前页码指示器的颜色
    self.pagecontrol.currentPageIndicatorTintColor = [UIColor redColor];
    //只有一页时,是否隐藏页码指示器
    self.pagecontrol.hidesForSinglePage = YES;
    [self.view addSubview:self.pagecontrol];
   
    //添加事件
    [self.pagecontrol addTarget:self action:@selector(click:) forControlEvents:UIControlEventValueChanged];

时间: 2024-08-09 06:27:01

UI<04> - UIPageControl<04>的相关文章

Ubuntu 12.04, 14.04 安装 oracle java

第一步:如果系统中已安装了open java,需要清理, 反之 略过此过程 sudo apt-get purge openjdk* 第二步: 安装 sudo apt-get install software-properties-common 第三步: 添加信任的软件源: sudo add-apt-repository ppa:webupd8team/java 第四步,更新 sudo apt-get update 第五步: 安装java java6 sudo apt-get install or

CVE-2015-1328 Ubuntu 12.04, 14.04, 14.10, 15.04 overlayfs Local Root

catalog 0. 引言 1. Description 2. Effected Scope 3. Exploit Analysis 4. Principle Of Vulnerability 5. Patch Fix 0. 引言 新技术.高性能技术的不断发展,越来越提升了操作系统的能力,而近几年出现的虚拟化技术,包括overlayfs虚拟层叠文件系统技术,则为docker这样的虚拟化方案提供了越来越强大的技术支撑,但是也同时带来了很多的安全问题抛开传统的overflow溢出型漏洞不说,还有另一

Cheatsheet: 2014 04.01 ~ 04.30

Java 115 Java Interview Questions and Answers – The ULTIMATE List 3 Good Reasons to Avoid Arrays in Java Interfaces Other Top 10 Algorithms for Coding Interview My Favourite Open Source Software Why I went from Python to Go (and not node.js) 6 Reason

工程问题--ubuntu 14.04/16.04源码安装catvehicle

ubuntu 14.04/16.04源码安装catvehicle 系统环境: 1. Ubuntu 14.04 + ROS Indigo 或者 Ubuntu 16.04 + ROS kinetic(主要) 2. Gazebo模型已经下载完成. 未下载的可以参考:https://blog.csdn.net/qq_40213457/article/details/81021562 中的方法2. 安装步骤: 1. 建立工作空间: 1 cd ~ 2 mkdir -p catvehicle_ws/src 3

Ubuntu 14.04/16.04使用pbis集成AD域帐号登录

Ubuntu 14.04/16.04使用pbis集成AD域帐号登录: 注:pbis为开源软件,前身为likewise-open 下载pbis deb包略 dpkg -i pbis-open/* /opt/pbis/bin/config UserDomainPrefix ming (设置默认域名前缀,不设置用户名前需加domain\) /opt/pbis/bin/config AssumeDefaultDomain true /opt/pbis/bin/config LoginShellTempl

【Android UI】案例04配置控件点击效果(selector)

本例采用XML(selector),配置控件点击效果的实现,即当控件被触发或点击获取到焦点时,出现样式上的改变,以便给以较好的用户体验与操作感.本例需要引入的核心知识点的selector.xml.请参考学习:http://blog.csdn.net/mahoking/article/details/23690857.本例用于演示点击效果的控件为TextView.Button. [转载使用,请注明出处:http://blog.csdn.net/mahoking] 首先需要配置selector.xm

VirtualBox中安装Ubuntu12.04/Ubuntu14.04虚拟机

NOTE: 一开始安装的Ubuntu12.04,后来又重新安装了14.04.截图基本使用了安装12.04时的截图,后来安装14.04时又补充了几张.该安装过程对Ubuntu12.04和14.04都是适用的. 1. 选择版本 1.1 Ubuntu桌面版与服务器版的区别 桌面版与服务器版,只要发布版本号一致,这两者从核心来说也就是相同的,唯一的差别在于它们的预期用途.桌面版面向个人电脑使用者,可以进行文字处理.网页浏览.多媒体播放和玩游戏.本质上说,这是一个为普通用户所定制的多用途操作系统.另一方面

Ubuntu 12.04/14.04 重大内核更新:漏洞修复

关于Linux的学习,请查阅书籍<Linux就该这么学> 今天,Ubuntu的开发团队为Ubuntu带来了重要的内核更新,在本次更新中,主要修复了七大安全漏洞. 此前,Ubuntu官方曾经发布公告,表示其在Ubuntu 12.04和14.04 LTS版本中发现了多达7项重大安全漏洞,并且这些漏洞的影响范围十分广泛. 而目前Ubuntu 16.04 LTS已经收到了这一次的更新,至于Ubuntu 15.10则将在大约一个月后收到次更新. 更新方法: 打开Unity Dash,搜索Software

【转】Install SmartGit via PPA in Ubuntu 13.10/13.04/12.04/Linux Mint

原文网址:http://ubuntuhandbook.org/index.php/2013/09/install-smartgit-via-ppa-ubuntu-linux-mint/ This tutorial will show you how to install SmartGit/HG easily via PPA in Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10 and Linux Mint. As you may kn