Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scaling - retina display

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Sep 18, 2010 12:38 am    Post subject: Scaling - retina display Reply with quote

iphonedevbook.com - Updating Code in Chapter 4 for iPhone 4?

"Quartz 2D and OpenGL APIs are in pixels, while UIKit APIs are generally
in points. So you will need to take care to use the correct metrics and sca-
le when appropriate.
...
The problem is that maybe some day we get a retina display that has a
different resolution than we have today. Then all your code breaks again.
Imagine that maybe that some near future version of iPad introduces a
display that has a scale factor of 1.5."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Sep 18, 2010 12:39 am    Post subject: Reply with quote

MF - iPhone 4 - Retina Screen Implications

"In some of our apps some buttons are pre-rendered (including the
text) and some are native... so I'm thinking - This will look a bit odd
on the iPhone 4".
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Oct 07, 2010 1:09 am    Post subject: Reply with quote

Paul Solt - iOS: Converting UIImage to RGBA8 Bitmaps and Back

"The issue with iPad is that the imageWithCGImage:scale:orientation:
selector doesn’t exist on iOS 3.2, most likely it will on iOS 4.2, so the
following code should be safe.

float scale = [[UIScreen mainScreen] scale]; will provide the correct scale
factor for the device."


Code:
      // Support both iPad 3.2 and iPhone 4 Retina displays with the correct scale
      if([UIImage respondsToSelector:@selector(imageWithCGImage:scale:orientation:)]) {
         float scale = [[UIScreen mainScreen] scale];
         image = [UIImage imageWithCGImage:imageRef scale:scale orientation:UIImageOrientationUp];
      } else {
         image = [UIImage imageWithCGImage:imageRef];
      }


"Grab the two files here or the sample Universal iOS App project..."
Back to top
View user's profile Send private message Visit poster's website
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Thu Dec 02, 2010 12:08 am    Post subject: Reply with quote

How do I adjust a Quartz 2D context to account for a Retina display?

http://stackoverflow.com/questions/3896968/how-do-i-adjust-a-quartz-2d-context-to-account-for-a-retina-display
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Tue Aug 28, 2012 9:01 pm    Post subject: Reply with quote

http://www.macrumors.com/2012/08/07/how-to-adjust-the-resolution-of-the-iphone-simulator-to-1136x640/

How to Adjust the Resolution of the iPhone Simulator to 1136x640
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Sep 23, 2012 9:25 pm    Post subject: Reply with quote

MF - How to update my app for iPhone 5's screen, simple list view

"I just got my iPhone 5, downloaded my app, and it is letterboxed onto a
3.5" screen. So I was obviously wrong."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Wed Sep 26, 2012 3:15 pm    Post subject: Reply with quote

reddit - iOS 6 Auto Layout draining all the joy from iOS development.
Can someone help me understand it?


"The primary reason I learned iOS development was because what you saw
in Xcode was what you got on the device, plain and simple. Now, with iOS 6,
Auto Layout, and the new screen size everything is a mess."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Fri Dec 12, 2014 8:22 pm    Post subject: Reply with quote

Beginning Adaptive Layout Tutorial

http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group