mirror of
https://github.com/zhigang1992/NoticeView.git
synced 2026-01-12 17:32:41 +08:00
noticeview with is calculated from the view bounds instead of frame to fix orientation with error
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