Skip to content

Commit

Permalink
Use NS_EXTENSION_UNAVAILABLE_IOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Jan 5, 2017
1 parent ac58be0 commit cfa9777
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ The animation is fired as soon as the popover enters the scene and completes its

![AMPopTip bounce](assets/bounce_effect.gif)

#Usage with app extension
When using this library in an app extension, make sure to add the user defined macro `AM_POPTIP_EXTENSION` to your extension's target.

#Customization
Use the appearance proxy to customize the popover before creating the instance, or just use its public properties:
```objc
Expand Down
2 changes: 1 addition & 1 deletion Source/AMPopTip.m
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ - (void)hideForced:(BOOL)forced {
};

BOOL isActive = YES;
#ifndef AM_POPTIP_EXTENSION
#if NS_EXTENSION_UNAVAILABLE_IOS
UIApplicationState state = [[UIApplication sharedApplication] applicationState];
isActive = (state == UIApplicationStateActive);
#endif
Expand Down

0 comments on commit cfa9777

Please sign in to comment.