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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -