eaintroview– highly customizable iOS app welcome page Universal Solution

Source: Internet
Author: User

Brief introduction

Highly customizable Application Welcome page universal Solution, highly customizable, not limited to the existing demo.

    • Project home: Eaintroview

    • Latest example: Click to download

EntryInstallation

After installation, introduce "EAIntroView.h" and set up the Eaintrodelegate agent.

Installing with Cocoapods
Pod ' Eaintroview ', ' ~> 2.7.0 '
Manual Installation

Add Eaintropage, Eaintroview, and Earestrictedscrollview. h and. m files to your project.

Customizable

Eaintroview can be highly customizable and not limited to the existing demo.
Eaintroview is a display of Introview and a set of presentation pages to form a series of guided display pages.
The basic use is: Create a set of Eaintropage (customizable, use see below), use this set of Eaintropage to create a eaintroview view Introview, this Introview Showinview to the view you want to show (see below)

Each of the basic pages used for presentation has


* Background (transition between pages with cross)
* Customize the effect of iOS7 motion on background (parallax)
* Title view (y-coordinate)
* Title text (font, color, y-coordinate)
* Description text (font, color, width, y-coordinate)
* Sub-view Array (added to the interface after setting the default layout)

To set a custom view for a page:
    • pagewithcustomview://a custom view

    • pagewithcustomviewfromnibnamed://Custom NIB

Events on each page
    • Pagedidload page Load

    • Pagedidappear page Display

    • Pagediddisappear page Disappears

Many options customize the parent view:
    • Swipe from end page to close//slide to the last Close

    • Switching pages with one easy tap//tap switch

    • Custom background image or color//set background picture, color

    • Custom page control//defines page control

    • Custom Skip button//Customize Skip Buttons

    • Pinned Titleview//custom title View

Agent Agreement:
    • Introdidfinish://Complete boot

    • Intro:pageAppeared:withIndex://boot page Toggle

Introview Supported methods:


* setpages://Setup Interface
* showinview:animateduration://Settings Display animation
* hidewithfadeoutduration://Display and Vanishing time
* setcurrentpageindex:animated://set the currently displayed interface and animation
??

Use:First step: Create an interface

Each interface needs to be created by [Eaintropage page], you can customize the properties, and all of the properties are optional. Or you can use your own custom view (which can be nib), and most of the options are ignored. For example:

The basic way to create eaintropage *page1 = [eaintropage page];p age1.title = @ "Hello World";p age1.desc = sampledescription1;//Custom, these Properties are optional eaintropage *page2 = [eaintropage page];p age2.title = @ "This is page 2";p age2.titlefont = [Uifont fontwithname:@ "Ge Orgia-bolditalic "size:20];p age2.titlepositiony = 220;page2.desc = Sampledescription2;page2.descfont = [UIFont fontwithname:@ "Georgia-italic" size:18];p age2.descpositiony = 200;page2.titleiconview = [[UIImageView alloc] Initwithimage:[uiimage imagenamed:@ "Title2"];p age2.titleiconpositiony = 100;//nib's Custom view eaintropage *page3 = [ Eaintropage pagewithcustomviewfromnibnamed:@ "Intropage"];p age3.bgimage = [UIImage imagenamed:@ "Bg2"];
Step Two: Create an introductory view

After all pages have been created, create an introductory view, which is presented in order in the introduction view. You can also initialize the view by passing it to the Introview group of views, Introview.

Eaintroview *intro = [[Eaintroview alloc] initWithFrame:self.view.bounds andpages:@[page1,page2,page3,page4]];//set up proxy [Intro setdelegate:self];
Step three: Show the Guide map
[Intro ShowInView:self.view animateduration:0.0];

?

Storyboard/ib Visual Programming Support

Support Storyboard/ib starting from Eaintroview 1.3.0

    • Drag UIView to IB docs

    • Set it's class to Eaintroview

    • Create the Iboutlet property of the Viewcontroller,
      @property(nonatomic,weak) IBOutlet EAIntroView *introView;

    • Link in IB IBOutlet and EAIntroView

    • Create an array of interfaces (you can use "pagewithcustomviewfromnibnamed"), one nib for each interface.
      The array is passed to the Eaintroview property in the Setpages method.


eaintroview– highly customizable iOS app welcome page Universal Solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.