Top corners are not rounded when view is created in code
First I want to say this is great. I was working on the same thing with now progress until I found your project, thanks for that.
I am creating my view in code and the top corners are not rounded when the MPNotificationView is positioned at 0, 0. When I position the MPNotificationView under the status bar the corners are rounded as they should be. To try and figure what was wrong I just created two skeleton apps, one using a nib for the main window and the other created in code. I don't know why it should make a difference, but it does. Any suggestions? I have not touched any of your code just included the MPNotificationView and OBGradientView in my projects.
Thanks again! Great work!
I'm not sure if I understand this issue correctly. Can you please attach a screenshot and your code creating your view?
Thanks for your prompt reply! I am using your MPNotificationView unmodified. The difference that I found was the when you use this with a view that was created in IB it works fine. When the view is created in code is when the problem arises. I attached two projects to test this out and attached them. click the button on the view to display the notification.
I was also trying to get the notification listed in the pull down notifications screen. Do you have any idea how to do that?
thanks!
On Thu, Feb 28, 2013 at 9:01 AM, Engin Kurutepe [email protected]:
I'm not sure if I understand this issue correctly. Can you please attach a screenshot and your code creating your view?
— Reply to this email directly or view it on GitHubhttps://github.com/Moped/MPNotificationView/issues/17#issuecomment-14234358 .
This issue occurs in my code as well, and my rootViewController is not nib-based as well. I wasn't able to find an explanation, but I did notice that my status bar turns white the moment the MPNotificationView starts it's appearance animation, if that is any help.
EDIT : making the main UIWindow background black fixed it.