All Projects → Bupterambition → Awesomeintroguideview

Bupterambition / Awesomeintroguideview

🏆An awesome view for Introduce

Projects that are alternatives of or similar to Awesomeintroguideview

Jsonhelper
✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!
Stars: ✭ 792 (+90.84%)
Mutual labels:  dictionaries, cocoapods
Gradientcircularprogress
Customizable progress indicator library in Swift
Stars: ✭ 407 (-1.93%)
Mutual labels:  cocoapods
Chaizi
漢語拆字字典
Stars: ✭ 384 (-7.47%)
Mutual labels:  dictionaries
Tlyshynavbar
Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
Stars: ✭ 3,780 (+810.84%)
Mutual labels:  cocoapods
Taggerkit
🏷 TaggerKit helps you to quickly implement tags in your UIKit apps, so you can go on and test your idea without having to worry about logic and custom collection layouts.
Stars: ✭ 390 (-6.02%)
Mutual labels:  cocoapods
Imagebutter
Makes dealing with images buttery smooth.
Stars: ✭ 395 (-4.82%)
Mutual labels:  cocoapods
Pmcalendar
Yet another calendar component for iOS. Compatible with iOS 4.0 (iPhone & iPad) and higher. Supports presenting as a popover and very flexible UI tuning. Default theme is inspired by https://github.com/ocrickard/OCCalendar
Stars: ✭ 383 (-7.71%)
Mutual labels:  cocoapods
Tocropviewcontroller
A view controller for iOS that allows users to crop portions of UIImage objects
Stars: ✭ 4,210 (+914.46%)
Mutual labels:  cocoapods
Deferred
Work with values that haven't been determined yet.
Stars: ✭ 406 (-2.17%)
Mutual labels:  cocoapods
Siren
Siren checks a user's currently installed version of your iOS app against the version that is currently available in the App Store.
Stars: ✭ 3,892 (+837.83%)
Mutual labels:  cocoapods
Coding Ios
CODING iOS 客户端源代码
Stars: ✭ 3,771 (+808.67%)
Mutual labels:  cocoapods
Iosdropdown
Drop Down Menu for iOS With Search And Other Awesome Customisation
Stars: ✭ 390 (-6.02%)
Mutual labels:  cocoapods
Skyfloatinglabeltextfield
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Stars: ✭ 3,907 (+841.45%)
Mutual labels:  cocoapods
Pysearch
🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
Stars: ✭ 3,816 (+819.52%)
Mutual labels:  cocoapods
Simpleimageviewer
A snappy image viewer with zoom and interactive dismissal transition.
Stars: ✭ 408 (-1.69%)
Mutual labels:  cocoapods
Lctabbarcontroller
A amazing and highly customized tabBarController! You could almost customize 100% properties with LCTabBarController!
Stars: ✭ 384 (-7.47%)
Mutual labels:  cocoapods
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-5.78%)
Mutual labels:  cocoapods
Acknowlist
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 392 (-5.54%)
Mutual labels:  cocoapods
Swiftyxmlparser
Simple XML Parser implemented in Swift
Stars: ✭ 413 (-0.48%)
Mutual labels:  cocoapods
Ghconsole
An elegant and easy way to show a console in your app. 一种优雅简单的方式在app中显示控制台。
Stars: ✭ 411 (-0.96%)
Mutual labels:  cocoapods

AwesomeIntroGuideView

Version License Platform

AwesomeIntroGuideView is an iOS drop-in class that displays user coach marks with a rectangular or star or circular cutout over an existing UI. This approach leverages your actual UI as part of the onboarding process for your user. Simply defining an array of views or dictionary (Hard code ) or rectangles (CGRect) and their accompanying captions.What's more, you can also define an extro display image to intro your view with url or local resource ,even you can add a click link on the guiding image.For example, if you defined the url of image - https://www.google.com , the user would click the guiding image your app will open https://www.google.com. As you can image,you can even define a route url of your app.

image image image

Installation

CocoaPods

AwesomeIntroGuideView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AwesomeIntroGuideView'

Source files

Alternatively, you can directly add the AwesomeIntroGuideView.h and AwesomeIntroGuideView.m source files to your project what's more you should add MGJRouter to your project.

Example

Create a new AwesomeIntroGuideView instance in your viewDidLoad or viewDidLayoutSubviews method and pass in an array of views or dictionaries.

- (void)viewDidLayoutSubviews {
    if (self.coachMarksShown == NO  && self.introduceArray.count) {
        [self.coachMarksView loadMarks:self.introduceArray];
        [self.coachMarksView loadGuideImageUrl:introGuideImgUrl withPoint:(CGPoint){70,100} redirectURL:@"http://www.mogujie.com/" withFrequency:0];
        [self.coachMarksView start];
    }
}

#pragma mark - UICollectionViewDataSource

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return 20;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath];
    if (indexPath.row %5 == 0 && self.introduceArray.count <=3 && indexPath.row != 0) {
        [self.introduceArray addObject:cell];
    }
    cell.backgroundColor = [UIColor colorWithRed:arc4random()%100/100. green:arc4random()%100/100. blue:arc4random()%100/100. alpha:arc4random()%100/100.];
    return cell;
}

#pragma mark - Accessor

- (AwesomeIntroGuideView *)coachMarksView {
    if (!_coachMarksView) {
        _coachMarksView = [[AwesomeIntroGuideView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    return _coachMarksView;
}

if you want to control the frame of each coachMask,you can use the NSArray of NSDictionary below

- (void)viewDidLoad {
	[super viewDidLoad];

	// ...

	// Setup coach marks
	NSArray *coachMarks = @[
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{0,0},{45,45}}],
			@"caption": @"Helpful navigation menu"
			@"shape": @"circle"
		},
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{10.0f,56.0f},{300.0f,56.0f}}],
			@"caption": @"Document your wedding by taking photos"
			@"shape": @"square"
		},
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{10.0f,119.0f},{300.0f,56.0f}}],
			@"caption": @"Your wedding photo album"
		},
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{10.0f,182.0f},{300.0f,56.0f}}],
			@"caption": @"View and manage your friends & family"
		},
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{10.0f,245.0f},{300.0f,56.0f}}],
			@"caption": @"Invite friends to get more photos"
		},
		@{
			@"rect": [NSValue valueWithCGRect:(CGRect){{0.0f,410.0f},{320.0f,50.0f}}],
			@"caption": @"Keep your guests informed with your wedding details"
		}
	];
	AwesomeIntroGuide *coachMarksView = [[AwesomeIntroGuide alloc] initWithFrame:self.view.bounds coachMarks:coachMarks];
	[self.view addSubview:coachMarksView];
	[coachMarksView start];
}

If you'd like to take a certain action when a specific coach mark comes into view, you can define the callback Block of AwesomeIntroGuideView

- (void)setUpCoachMarksViewCallBack {
    self.coachMarksView = [[AwesomeIntroGuideView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.coachMarksView.completionBlock = ^(AwesomeIntroGuideView *guideView){
        NSLog(@"%@",guideView);
    };
    self.coachMarksView.willCompletionBlock = ^(AwesomeIntroGuideView *guideView){
        NSLog(@"%@",guideView);
    };
    self.coachMarksView.didNavgateBlock = ^(AwesomeIntroGuideView *guideView, NSUInteger indedx) {
        NSLog(@"%@",guideView);
    };
    self.coachMarksView.willNavgateBlock = ^(AwesomeIntroGuideView *guideView, NSUInteger indedx) {
        NSLog(@"%@",guideView);
    };
}

#pragma mark - Accessor

- (AwesomeIntroGuideView *)coachMarksView {
    if (!_coachMarksView) {
        _coachMarksView = [[AwesomeIntroGuideView alloc] initWithFrame:[UIScreen mainScreen].bounds];
        _coachMarksView.loadType = AwesomeIntroLoad_Sync;
    }
    return _coachMarksView;
}

More Detail

just clone the repo , check the my code

Author

bupterAmbition,[email protected]

License

AwesomeIntroGuideView is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].