Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
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 ?
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
You have to give more details or show the drawing code. Drawing on iPhone and iPad is basically the same.
 

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.