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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -