iOS UITableViewController 添加一个固定的不能滚动的控件
来源:互联网 发布:优化的南洋金珠会掉色 编辑:程序博客网 时间:2024/05/17 03:47
添加一个button 等宽与视图的宽度
tryButton = [UIButtonbuttonWithType:UIButtonTypeCustom];
tryButton.frame =CGRectMake(0,self.view.frame.size.height-44,self.view.frame.size.width,44);
// [tryButton setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
[tryButtonsetBackgroundColor:[UIColorredColor]];
[tryButtonaddTarget:selfaction:@selector(tryButtonAction)forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:tryButton];
添加在scrollView方法里设置坐标即可
-(void)scrollViewDidScroll:(UIScrollView *)scrollView
{
tryButton.frame =CGRectMake(0, (self.tableView.frame.size.height - 150) + self.tableView.contentOffset.y , tryButton.frame.size.width,tryButton.frame.size.height);
}
- iOS UITableViewController 添加一个固定的不能滚动的控件
- iOS之UITableViewController的使用
- iOS - UITableViewController的RefreshControl使用
- 在tableView、scrollView、collectionView上层添加一个固定的UIButton,不随其滚动
- UITableViewController的子控件不随着滑动
- 07-控件UITableViewController的使用:-header & -footer
- IOS 给一个控件添加一个动画组的效果
- ios scrollview不能上下滚动的问题
- 【iOS开发新手上路】教你一步一步创建一个功能齐全的UITableViewController(上)
- 一个滚动间隔固定的日期选择器和一个仿苹果滚动间隔不固定的选择器
- 解决不能添加过多的控件对象
- 一个点击滚动展开的控件
- 在UITableViewController对应的storyBoard中添加view
- iOS 使用 Runtime Attribute 为 IB 控件添加不能直接设置的属性
- 继承自UITableViewController 需要往视图上添加固定按钮
- ios 在UITableViewController上添加悬浮视图
- 添加一个相对与窗口固定位子的浮动层
- iOS学习- 09 控件 UITableViewController - Todo App
- 关于不再使用的Java对象手工指null是否有意义
- Android 权限管理
- Android 使用ContentResolver获取手机图片和照片的相关信息
- fir.im Weekly - 如何进行 Android App 性能优化
- ios与android与java通用的AES加解密
- iOS UITableViewController 添加一个固定的不能滚动的控件
- 常用插件
- win7,用vs2010编译libjpeg
- java学习日记_75:集合框架之对象数组和集合的引入
- ORB-SLAM2详解(一)简介
- 邻接表
- 使用 pod install 还是 pod update ?
- GIS 算法 之 拉默-道格拉斯-普克算法(ramer-douglas-peucker)
- mysql中limit用法