ajerez / AJNotificationView

Notice component for iOS (UNMAINTAINED CODE)
MIT License
303 stars 41 forks source link

Can now manually specify offset from top #2

Closed gtmtg closed 11 years ago

gtmtg commented 11 years ago

Before, the AJNotificationView would simply set the offset to the status bar's height (if the view specified is a UIWindow) or 0.0 (if it's not). This could cause undesired behavior if the view is in a UINavigationController (the notification would display below the status bar) or if the view is the navigationController.view itself (part of the notification would be cut off by the status bar).

I've changed it so that the user can manually specify the offset. If none is specified, it will default back to the old behavior.

tobinharris commented 11 years ago

Perfect :)

Can the Podfile be updated?

ajerez commented 11 years ago

with that?

tobinharris commented 11 years ago

Was meaning - can the Podfile with the latest version of the code be updated. This will mean I can do

pod update

For my app, and I'll benefit from the latest fixes.

ajerez commented 11 years ago

I don't use Cococapods, so it is not tested, but the tag 0.1 links to the last commit of the repo, and the podfile is linked to this tag, so the update should work.

Sorry for my bad english ;)