Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 17, 2012, 02:48 PM   #1
chhoda
macrumors 6502
 
Join Date: Oct 2008
iphone ipad nib

i am trying to do universal app. i am doing some drawing in drawrect, this works fine when i execute for iphone, but same thing does not work for iPad.

i tried doing separate ipad xib, by creating a new nib file using IB but here the drawrect seem to draw something bizzare from previous scren.

i tried copying the iphone xib and resizing it to ipad, but it does not allow me to change view size !

what is the ideal solution ?
chhoda is offline   0 Reply With Quote
Old Apr 17, 2012, 05:23 PM   #2
PhoneyDeveloper
macrumors 68030
 
PhoneyDeveloper's Avatar
 
Join Date: Sep 2008
You have to give more details or show the drawing code. Drawing on iPhone and iPad is basically the same.
PhoneyDeveloper is offline   0 Reply With Quote
Old Apr 18, 2012, 02:11 AM   #3
chhoda
Thread Starter
macrumors 6502
 
Join Date: Oct 2008
thanks, but the codes are a bit much to post and explain.

I dont understand, just increasing the view size would take previous screen's context, even in viewdidappear i called view setneedsdisplay, but it is taking previous screen's colours and items ! in iPhone it is fine.

it seems the system is applying some transforms in the view after drawrect is called, can we make it so that the transforms are applied and then drawrect is called ?

regards
chhoda is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -5. The time now is 09:02 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC