GuidePageView.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // GuidePageView.h
  3. // ShangHaiShiKe
  4. //
  5. // Created by mac mini on 15/6/13.
  6. // Copyright (c) 2015年 com.ShangHaiShiKe. All rights reserved.
  7. //
  8. ////添加方式
  9. //if (![[NSUserDefaults standardUserDefaults] boolForKey:@"flag"]) {
  10. // BOOL flag = YES;
  11. // [[NSUserDefaults standardUserDefaults] setBool:flag forKey:@"flag"];
  12. //
  13. // guidePageView = [[GuidePageView alloc] initWithFrame:CGRectMake(0, 0, KApplicationSize.width, KApplicationSize.height)];
  14. // __block HomeViewController *vc = self;
  15. // guidePageView.GuidePageViewBack = ^(void) {
  16. //
  17. // [UIView animateWithDuration:.3 animations:^{
  18. // vc->guidePageView.alpha = 0;
  19. //
  20. // } completion:^(BOOL finished) {
  21. // [vc->guidePageView removeFromSuperview];
  22. // }];
  23. //
  24. // [vc createFunctionGuideView];
  25. // };
  26. // [ApplicationDelegate.window addSubview:guidePageView];
  27. //}
  28. //多张新手引导页
  29. #import <UIKit/UIKit.h>
  30. @interface GuidePageView : UIView <UIScrollViewDelegate> {
  31. UIScrollView *mainScrollView;
  32. UIPageControl *pageView;
  33. UIButton *backBut;
  34. }
  35. - (id)initWithFrame:(CGRect)frame images:(NSArray *)array;
  36. @property (nonatomic, copy) void (^GuidePageViewBack)(void);
  37. @end