Code Monkey home page Code Monkey logo

ghwalkthrough's Introduction

#GHWalkThrough - iOS App Walk through control

alt tag alt tag alt tag alt tag

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

// 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

###License :

The MIT License

ghwalkthrough's People

Contributors

christianroman avatar sononum avatar tapasya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghwalkthrough's Issues

Not working in ios9

Hey thanks for the code :)

This code is working fine for ios9 but this not working in ios9.0.2

and my code is:

    [_ghView setFloatingHeaderView:nil];
    self.ghView.isfixedBackground = YES;
    self.ghView.bgImage = [UIImage imageNamed:@"Tut_BG.png"];
    [self.ghView setWalkThroughDirection:GHWalkThroughViewDirectionHorizontal];
    [self.ghView showInView:self.navigationController.view animateDuration:0.3];

any help??

Swipe to end walkthrough?

Is there a way to configure the walkthrough such that swiping the last page closes the walkthrough? (Similar to EAIntroView)

Need images that are proper 4" size

It would be great if you could supply the static_bg image in 640x1136 instead of the old 3.5" dimensions. Note that some of your backgrounds are this size, others are the 3.5" too.

Also, can you add a link to the README as to where the Octocat images can be found online?

Rare EXC_BAD_ACCESS crash

I'm encountering a rare crash that is likely the result of something I'm doing but I thought I'd see if anyone else had ideas.

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000010

Here's the stacktrace

Thread : Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x00000001950ac0b4 objc_retain + 20
1  ETM iOS App                    0x000000010018f02c -[GHWalkThroughView crossDissolveForOffset:] (GHWalkThroughView.m:251)
2  ETM iOS App                    0x000000010018ee20 -[GHWalkThroughView scrollViewDidScroll:] (GHWalkThroughView.m:219)
3  UIKit                          0x000000018858fbbc -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 72
4  UIKit                          0x00000001882ccdb4 -[UIScrollView setContentOffset:] + 500
5  UIKit                          0x000000018845b140 -[UIScrollView _updatePanGesture] + 1684
6  UIKit                          0x00000001884470dc _UIGestureRecognizerSendActions + 276
7  UIKit                          0x00000001882e0720 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 580
8  UIKit                          0x00000001887514fc ___UIGestureRecognizerUpdate_block_invoke662 + 60
9  UIKit                          0x00000001882a4484 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 292
10 UIKit                          0x00000001882a2830 _UIGestureRecognizerUpdate + 2504
11 UIKit                          0x00000001882de898 -[UIWindow _sendGesturesForEvent:] + 1044
12 UIKit                          0x00000001882ddf50 -[UIWindow sendEvent:] + 660
13 UIKit                          0x00000001882b118c -[UIApplication sendEvent:] + 264
14 UIKit                          0x0000000188552324 _UIApplicationHandleEventFromQueueEvent + 15424
15 UIKit                          0x00000001882af6a0 _UIApplicationHandleEventQueue + 1716
16 CoreFoundation                 0x0000000183828240 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
17 CoreFoundation                 0x00000001838274e4 __CFRunLoopDoSources0 + 264
18 CoreFoundation                 0x0000000183825594 __CFRunLoopRun + 712
19 CoreFoundation                 0x00000001837512d4 CFRunLoopRunSpecific + 396
20 GraphicsServices               0x000000018cf676fc GSEventRunModal + 168
21 UIKit                          0x0000000188316fac UIApplicationMain + 1488
22 ETM iOS App                    0x00000001000d7918 main (main.m:16)
23 libdyld.dylib                  0x0000000195712a08 start + 4

We have a tab view controller in our app with several walkthroughs in different tabs and based on logging of the 2 times it's happened it's been when users view multiple walkthroughs in different tabs. I suspect crossDissolveForOffset is getting called on the wrong walkthrough object that has already been deallocated however if that was the case I would've expected it to crash on [GHWalkThroughView scrollViewDidScroll:] when it tried to access the walkthrough object the first time. The issue is extremely rare and I've been unable to repro so maybe it's a race condition when switching tabs with walkthroughs.

Any ideas/advice would be appreciated :)

orientation change to landscape

The landscape mode does not resize views properly. I tried changing the autoresize property of the views, but somehow it doesn't fix the problem.

Push to viewcontroller

Hi,
Firstly, thank u for code ๐Ÿ‘

I added a new button on GHWalkThroughView.m.
I can't push a new viewcontroller.
Why can't I open a new viewcontroller on main.storyboard with button clicked?
Can u help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.