- 博客(4)
- 收藏
- 关注
原创 UITableView个人笔记
UITableViewController: TableViewController中的 TableViewController.view和TableViewController.tableView实际指针是指向同一个内存地址的,也可以理解成是同一个控件,只是类型一个是父类一个是子类。 UITableViewCell: cell的运行流程: 1.获取屏幕的宽度高度 ...
2019-03-13 14:53:14
132
原创 Xcode10.1安装插件(包括了Xcode8.X、Xcode9.X)
下面的教程都基于终端运行(命令行) 先更新一下ruby curl -L https://get.rvm.io | bash -s stable 如果提示* WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/x...
2019-03-01 07:16:03
2077
原创 iOS-UIButton简单的使用介绍
1.最简单的一个创建方式 UIButton *btn = [[UIButton alloc] init]; 2.常用创建方式,在创建button的同时设置type UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom]; 3.设置button的文字 在使用中需要注意title的默认颜色是无色的接下来需要设置...
2019-02-11 15:59:16
444
原创 iOS-随机数
只介绍常用的两个随机数函数 个人常用随机数的函数是arc4random和arc4random_uniform 一.arc4random -使用取余方式获取X-1范围内的整数(随机获得的数据包括了0) `arc4random()%100` //0~99 二.arc4random_uniform(100) -给arc4random_uniform传递一个你需要返回的随机数的最大-1阀值 (随机获得...
2019-02-11 15:19:56
633
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人