custom slider

Discussion in 'iPhone/iPad Programming' started by chhoda, Nov 11, 2008.

  1. macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    I am using custom picker from UICatalog. Unfortunately I am unable to get rid of the two gray rectangles that are coming when i add my custom picker to view. This also comes in UICatalog example app also, but looks manageable because custom picker's width is almost same. But here I want a thinner custom picker, so I want to get rid of that background. I am instantiating custom picker by initframe:cgrectmake(0,0,50,50);

    regards
    ch
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    I don't think UIPickerView was designed to be called with initWithFrame, and IB actively prevents you from resizing it when creating nibs. It seems you may be stuck with it like that.

    As a hack, you could overlay other UI components to obscure the grey background (UIImageView + bringSubviewToFront, for instance).
     
  3. thread starter macrumors 6502

    Joined:
    Oct 25, 2008
    #3
    why ?

    Very Bad, What for the background comes at all ?
     

Share This Page