博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[翻译] AnchoredFloatView
阅读量:4578 次
发布时间:2019-06-08

本文共 1491 字,大约阅读时间需要 4 分钟。

AnchoredFloatView

Float View over TableView to indicate selected row direction

Float View 可以用来指示 TableView 中被选择的cell.

This is a Float View to indicate the direction and quickly scroll up or down to the TableView selected Row.

Float View 这是用来标示选中的cell,点击它后可以快速的移动到被选中cell上.

It basically consists of a custom UILabel with one fixed UIImageView inside it, on the left.

Float View 是由自定义的UILabel与一个左侧固定的UIImageView组成的.

 

 

 

Features

  • automatically update label frame and align it on TableView bottom center 自动更新label的frame值并居中
  • quickly scroll up or down the tableView to the selected row on click 点击后快速移动到之前你选中的cell上
  • nice splash animation 华丽的移动动画
  • rotation compatible 兼容横竖屏

 

Installation

Grab the files in View/AnchoredFloatView and put it in your project. The code uses ARC, so make sure to turn that on for the files if you're not already using ARC.

将AnchoredFloatView拖到你的项目当中.这份代码是由ARC,所以,你要确保切换到ARC上去.

 

Usage

import the header class on your tableViewController:

将以下头文件导入你的项目当中:

#import "AnchoredFloatView.h"

alloc/init the view on viewDidLoad passing tableView and the indexPath of the selectedRow by parameter:

初始化view,然后将tableView与被选中的indexPath传递给这个view:

AnchoredFloatView *floatView = [[AnchoredFloatView alloc] initWithTableView:self.tableView andTargetIndexPath:self.targetIndexPath]; [self.view addSubview:floatView];

 

Small Print

License

AnchoredFloatView is released under the MIT license.

AnchoredFloatView遵循MIT协议.

Author

Carlos Arantes ()

 

转载于:https://www.cnblogs.com/YouXianMing/p/4293481.html

你可能感兴趣的文章
命令行简介(附加参考资料)
查看>>
从0开始整合SSM框架-1.mybatis
查看>>
移位操作的疑问
查看>>
UILabel常用属性小结
查看>>
gitlab 邮件服务器配置
查看>>
Python 循环语句(while, for)
查看>>
深入理解JavaScript原型链
查看>>
LinearGradient类来实现图片的渐变效果
查看>>
Golang关键字—— if/else
查看>>
数据清洗
查看>>
PHP&MySQL(三)——数组
查看>>
各种语法解释及用法
查看>>
GPS.NET 和 GeoFramework开源了
查看>>
汇编:采用址表的方法编写程序实现C程序的switch功能
查看>>
AtiveMQ初次连接的 http error:503 连接错误 Prolem accessing /.Reason : Service Unavailable...
查看>>
OFO和摩拜共享单车
查看>>
数据适配 DataAdapter对象
查看>>
有序列表ol和定义列表dl,dt,dd
查看>>
联想小新Air 15 安装黑苹果macOS High Sierra 10.13.6过程
查看>>
公共POI导出Excel方法–java
查看>>