LPDGuideMaskKit 0.0.1

LPDGuideMaskKit 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2017

Maintained by EyreFree.



  • By
  • mmoaay

LPDGuideMaskKit

CI Status
Codebeat
Version
License
Platform

Preview

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+

Installation

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

pod "LPDGuideMaskKit"

Usage

  • LPDGuideMaskButtonItem
  • LPDGuideMaskHollowItem
  • LPDGuideMaskTipsItem
  NSArray<id<LPDGuideMaskItemProtocol>> *guideOne = @[[[LPDGuideMaskHollowItem alloc] initWithCenter:self.guideOne.center size:self.guideOne.bounds.size],
                        [[LPDGuideMaskTipsItem alloc] initWithImage:[UIImage imageNamed:@"image_transferorder_guide2"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, 120+(170/2)) size:CGSizeMake(320, 170)],
                        [[LPDGuideMaskButtonItem alloc] initWithView:[self nextWithTitle:@"下一步"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, [UIScreen mainScreen].bounds.size.height-(142+20)) size:CGSizeMake(100, 40)]
                        ];
  
  NSArray<id<LPDGuideMaskItemProtocol>> *guideTwo = @[
                        [[LPDGuideMaskHollowItem alloc] initWithCenter:self.guideTwo.center size:self.guideTwo.bounds.size],
                        [[LPDGuideMaskTipsItem alloc] initWithImage:[UIImage imageNamed:@"image_transferorder_guide3"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, [UIScreen mainScreen].bounds.size.height-(120+(200/2))) size:CGSizeMake(320, 200)],
                        [[LPDGuideMaskButtonItem alloc] initWithView:[self nextWithTitle:@"下一步"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, [UIScreen mainScreen].bounds.size.height-(142+20)) size:CGSizeMake(100, 40)]
                        ];
  
  NSArray<id<LPDGuideMaskItemProtocol>> *guideThree = @[
                          [[LPDGuideMaskHollowItem alloc] initWithCenter:self.guideThree.center size:self.guideThree.bounds.size],
                          [[LPDGuideMaskTipsItem alloc] initWithImage:[UIImage imageNamed:@"image_transferorder_guide4"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, [UIScreen mainScreen].bounds.size.height-(120+(200/2))) size:CGSizeMake(320, 200)],
                          [[LPDGuideMaskButtonItem alloc] initWithView:[self nextWithTitle:@"开始转单"] center:CGPointMake([UIScreen mainScreen].bounds.size.width/2.0, [UIScreen mainScreen].bounds.size.height-(142+20)) size:CGSizeMake(100, 40)]
                          ];
  
  [[LPDGuideMaskKit shared] setItems:@[guideOne, guideTwo, guideThree]];

Author

mmoaay, [email protected]

License

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