iphone - Button's background on ios7 is squeezed, ios6 ok -


i updated xcode 5. buttons in app ok in ib , on ios 6 device, on ios 7 device (they should cover whole black space):

enter image description here

i have images both non-retina/retina.

i have no idea do, because didn't change in code or ib.

edit:

now found out, if change type of button custom system , set background instead of image, correct size strange shadow on it.

edit2:

now set button's tint color "clear color" , seems ok (shadow disappeared). still not sure has changed in ios 7 related this.

the human interface guidelines outline how system-style uibuttons work default. it explains system button:

  • has no border or background appearance default ...
  • supports custom decoration, such border or background image (to add custom appearance, use button of type uibuttontypecustom , supply custom background image).

however uibutton hig page provides little more information, specifically:

if not explicitly set tint color, button inherit superview’s tint color.

this explains why, after changing button uibuttontypesystem, have reset (remove) tint colour. in ios7, (almost) everything has tint colour. uibuttontypesystem more appropriate needs in ios7 (a bit of pain if there's lot manually change though...)

as why buttons shrink in ios7... agree @joseph's comment regarding uiviewcontroller view frames in ios7. have set relation size of buttons not play nicely when viewcontroller's frame changes in ios7 (see this question discussion). advised there, check out ios7 transition guide see if you're doing in ib going against new ios7-grain.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -