Thanks for reply.
Calling frameOfOutlineCell(atRow:) in outlineView(_:heightOfRowByItem:) caused crash by infinite loop.
I think the function is for row that already displaying.
There are other way to get disclosure triangle area width from row view that already display.
override func viewDidAppear() {
super.viewDidAppear()
/* view in column 0,row 0 needs to already displaying. */
if let v = outlineView.view(atColumn: 0, row: 0, makeIfNecessary: false) {
print("disclosure width: \(v.superview!.convert(v.frame, to: outlineView).minX)")
}
}
But I need to get it before display, like indentationPerLevel.
Post
Replies
Boosts
Views
Activity
Recent Apple doesn't fix very inconvenient bugs like this for a long time. It's very very irritated. 😡