Changed the width of the Error, Success, and Sticky view to use its superviews bounds with instead of frame width. This is because if the notice view is applied to a view that an Core Graphics transform has been applied to the frame is undefined. See warning on transform property at https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html

This commit is contained in:
Rob Lester
2013-01-07 20:28:16 -05:00
parent cf530eb039
commit 25cb321ada
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
- (void)show
{
// Obtain the screen width
CGFloat viewWidth = self.view.frame.size.width;
CGFloat viewWidth = self.view.bounds.size.width;
// Locate the images
NSString *path = [[[NSBundle mainBundle]resourcePath]stringByAppendingPathComponent:@"NoticeView.bundle"];

View File

@@ -24,7 +24,7 @@
- (void)show
{
// Obtain the screen width
CGFloat viewWidth = self.view.frame.size.width;
CGFloat viewWidth = self.view.bounds.size.width;
// Locate the images
NSString *path = [[[NSBundle mainBundle]resourcePath]stringByAppendingPathComponent:@"NoticeView.bundle"];

View File

@@ -24,7 +24,7 @@
- (void)show
{
// Obtain the screen width
CGFloat viewWidth = self.view.frame.size.width;
CGFloat viewWidth = self.view.bounds.size.width;
// Locate the images
NSString *path = [[[NSBundle mainBundle]resourcePath]stringByAppendingPathComponent:@"NoticeView.bundle"];