Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GnosisHub/GHWalkThrough
A UICollectionView backed drop-in component for introduction views
https://github.com/GnosisHub/GHWalkThrough
Last synced: 3 months ago
JSON representation
A UICollectionView backed drop-in component for introduction views
- Host: GitHub
- URL: https://github.com/GnosisHub/GHWalkThrough
- Owner: GnosisHub
- License: mit
- Created: 2014-01-22T07:12:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T08:03:17.000Z (over 7 years ago)
- Last Synced: 2024-04-24T18:58:37.118Z (6 months ago)
- Language: Objective-C
- Size: 5.35 MB
- Stars: 708
- Watchers: 32
- Forks: 55
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
- awesome-ios - GHWalkThrough - A UICollectionView backed drop-in component for introduction views. (Walkthrough / Intro / Tutorial / Web View)
- awesome-ios-star - GHWalkThrough - A UICollectionView backed drop-in component for introduction views. (Walkthrough / Intro / Tutorial / Web View)
README
#GHWalkThrough - iOS App Walk through control
![alt tag](https://github.com/GnosisHub/GHWalkThrough/blob/master/wtbgfixed.gif)
![alt tag](https://github.com/GnosisHub/GHWalkThrough/blob/master/wthorizontal.gif)
![alt tag](https://github.com/GnosisHub/GHWalkThrough/blob/master/wtvertical.gif)
![alt tag](https://github.com/GnosisHub/GHWalkThrough/blob/master/wtwithheader.gif)This is simple and customizable drop-in solution for showing app walkthroughs or intros.
* Configurable to walk through in horizontal and vertical directions
* Support for having custom floating header on all pages
* Supports fixed background image##How To Use
Sample app contains examples of how to configure the component
* Add `GHWalkThroughView` and `GHWalkThroughPageCell` headers and implementations to your project (4 files total).
* Include with `#import "GHWalkThroughView.h"` to use it wherever you need.
* Set and implement the `GHWalkThroughViewDataSource` to provide data about the pages.### Sample Code
```objc
// Creating
GHWalkThroughView* ghView = [[GHWalkThroughView alloc] initWithFrame:self.view.bounds];
[ghView setDataSource:self];// Implementing data source methods
(NSInteger) numberOfPages
{
return 5;
}- (void) configurePage:(GHWalkThroughPageCell *)cell atIndex:(NSInteger)index
{
cell.title = @"Some title for page";
cell.titleImage = [UIImage imageNamed:@"Title Image name"];
cell.desc = @"Some Description String";
}- (UIImage*) bgImageforPage:(NSInteger)index
{
UIImage* image = [UIImage imageNamed:@"bgimage"];
return image;
}
```##Credits
For inspiration
- [EAIntroView](https://github.com/ealeksandrov/EAIntroView)
- [ICETutorial](https://github.com/icepat/ICETutorial)###License :
The MIT License