Skip to content

kevinheader/AnchoredFloatView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

AnchoredFloatView


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

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

anchoredfloatview-preview

Features

  • automatically update label frame and align it on TableView bottom center
  • quickly scroll up or down the tableView to the selected row on click
  • 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.

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:

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

Small Print

License

AnchoredFloatView is released under the MIT license.

Author

Carlos Arantes (@carantes)

About

Float View over TableView to indicate selected row direction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%