https://github.com/apppear/overlaytutorial
https://github.com/apppear/overlaytutorial
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apppear/overlaytutorial
- Owner: AppPear
- Created: 2013-03-31T13:23:15.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-31T19:59:46.000Z (over 13 years ago)
- Last Synced: 2025-06-08T02:57:25.443Z (about 1 year ago)
- Language: Objective-C
- Size: 301 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Overlay tutorial
===============
Hi!
This little code is created to help add and manage overlays (image) in your app, especially tutorials.

Import the Overlaytutorial.h file or prefix it, then you can add the overlay with this simple method:
```Objective-C [TutorialOverlay addOverlayInView:self.view withImageNamed:@"image.png" withAnimation:YES withUserInteraction:YES];```
If userinteraction is YES you must remove the overlay(s) (you can overlay an overlay :) ) with this method:
```Objective-C [TutorialOverlay removeOverlaysInView:self.view]; ```if not, one simple tap on the overlay will remove that.
You can add a notification, it will fire when the overlay removed:
```Objective-C [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selector:) name:OverlayNotificationKey object:nil];```