mirror of
https://github.com/zhigang1992/NoticeView.git
synced 2026-04-29 12:35:31 +08:00
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:
@@ -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"];
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user