eaintroview– highly customizable iOS app welcome page Universal Solution

Source: Internet
Author: User
Tags set background

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
Getting Started Installation

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:

// 基本的创建方式EAIntroPage *page1 = [EAIntroPage page];page1.title = @"Hello world";page1.desc = sampleDescription1;// 自定义的,这些属性都是可选的EAIntroPage *page2 = [EAIntroPage page];page2.title = @"This is page 2";page2.titleFont = [UIFont fontWithName:@"Georgia-BoldItalic" size:20];page2.titlePositionY = 220;page2.desc = sampleDescription2;page2.descFont = [UIFont fontWithName:@"Georgia-Italic" size:18];page2.descPositionY = 200;page2.titleIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title2"]];page2.titleIconPositionY = 100;//nib的自定义视图EAIntroPage *page3 = [EAIntroPage pageWithCustomViewFromNibNamed:@"IntroPage"];page3.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]];//设置代理[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

Related Article

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.