I was trying to present a popover from a UITableViewCell
's accessoryView. The view is the default UITableViewCellAccessoryDetailButton
. Apparently the accessoryView is nil
, and, according to this question, this is an intended behavior. My question is, how do I get the frame of the accessory, even though the accessoryView property is nil?
相关问题
- CALayer - backgroundColor flipped?
- What means in Dart static type and why it differs
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- Notice: Undefined property - how do I avoid that m
You don't need to get the frame to present the popover. When you have an accessory view, the width of the cell's contentView is made narrower so it ends just before the accessory view (you can see this if you give the contentView a background color). You can use that width to position your popover just to the left of the button,