noticeview with is calculated from the view bounds instead of frame to fix orientation with error

This commit is contained in:
Troels Richter
2013-01-02 22:18:19 +01:00
parent cf530eb039
commit ab6dc8577c
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"];