iphone ipad nib

Discussion in 'iOS Programming' started by chhoda, Apr 17, 2012.

  1. macrumors 6502

    Joined:
    Oct 25, 2008
    #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 ?
     
  2. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    You have to give more details or show the drawing code. Drawing on iPhone and iPad is basically the same.
     
  3. thread starter macrumors 6502

    Joined:
    Oct 25, 2008
    #3
    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
     

Share This Page