iphone - Getting the width of a UIBarButtonSystemItem -



iphone - Getting the width of a UIBarButtonSystemItem -

is there way programmatically width of uibarbuttonsystemitem. width property returns 0 scheme items. in particular, want exact width of editbuttonitem property of uiviewcontroller.

on iphone value 44 bit bigger on ipad , cannot nail down.

i got reply link @jobu1324 left of comment.

here code used.

uibarbuttonitem *item = /*...*/; uiview *view = [item valueforkey:@"view"]; cgfloat width = view? [view frame].size.width : (cgfloat)0.0;

iphone objective-c ios uiviewcontroller uibarbuttonitem

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -