ios - Programmatically create UIToolbar with default height -


there number of questions regarding height of uitoolbar, don't see 1 height obtained dynamically. there way create uitoolbar correct default height?

create toolbar 0 height, call sizetofit. toolbar have default height.

uitoolbar *toolbar = [[uitoolbar alloc] initwithframe:cgrectmake(0, 0, width, 0)]; [toolbar sizetofit]; 

Comments

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -