iphone ipad nib

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

  1. chhoda macrumors 6502

    Oct 25, 2008
    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. PhoneyDeveloper macrumors 68040


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

    Oct 25, 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 ?


Share This Page