On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop EAIntroView.framework and EARestrictedScrollView.framework from the Carthage/Build/iOS/ folder on disk.
On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following contents:
/usr/local/bin/carthage copy-frameworks
add the paths to the frameworks under “Input Files”:
Add EAIntroPage and EAIntroView headers and implementations to your project (4 files total).
You can now use EAIntroView by adding the following import:
import EAIntroView
#import <EAIntroView/EAIntroView.h>
How To Use It
Sample project have many examples of customization. Here are only simple ones.
Step 1 - Build Pages
Each page created with [EAIntroPage page] class method. Then you can customize any property, all of them are optional. Another approach is to pass your own (can be nib), custom view in EAIntroPage, this way most other options are ignored.
Once all pages have been created, you are ready to create the introduction view. Just pass them in right order in the introduction view. You can also pass array of pages after IntroView’s initialization, it will rebuild its contents.
EAIntroView - simple iOS Introductions
This is highly customizable drop-in solution for introduction views. Some features (remember, most features are optional and can be turned off):
Installation
You can setup
EAIntroView
using Carthage, CocoaPods or completely manually.Carthage
Add
EAIntroView
to your project’sCartfile
:Run
carthage update
in your project directory.On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop EAIntroView.framework and EARestrictedScrollView.framework from the
Carthage/Build/iOS/
folder on disk.On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following contents:
add the paths to the frameworks under “Input Files”:
and the paths to the copied frameworks to the “Output Files”:
CocoaPods
Add EAIntroView to your project’s
Podfile
:Run
pod update
orpod install
in your project directory.Setting Up Manually
Add EARestrictedScrollView header and implementation to your project (2 files total).
Add
EAIntroPage
andEAIntroView
headers and implementations to your project (4 files total).You can now use
EAIntroView
by adding the following import:How To Use It
Sample project have many examples of customization. Here are only simple ones.
Step 1 - Build Pages
Each page created with
[EAIntroPage page]
class method. Then you can customize any property, all of them are optional. Another approach is to pass your own (can be nib), custom view inEAIntroPage
, this way most other options are ignored.Step 2 - Create Introduction View
Once all pages have been created, you are ready to create the introduction view. Just pass them in right order in the introduction view. You can also pass array of pages after IntroView’s initialization, it will rebuild its contents.
Don’t forget to set the delegate if you want to use any callbacks.
Step 3 - Show Introduction View
Storyboard/IB
Since 1.3.0
EAIntroView
supports init from IB. Since 2.0.0EAIntroPage
supports it too.UIView
to your IB document.EAIntroView
.IBOutlet
property in your view controller:@property(nonatomic,weak) IBOutlet EAIntroView *introView;
.IBOutlet
withEAIntroView
in IB.pageWithCustomViewFromNibNamed:
here with separate nibs for each page).EAIntroView
property insetPages:
.Author
Created and maintained by Evgeny Aleksandrov (@ealeksandrov).
License
EAIntroView
is available under the MIT license. See the LICENSE.md file for more info.