Post

Replies

Boosts

Views

Activity

Reply to UITableViewCell layout not updating until cell is reused
Cell layout is not updated until cell is reused. if you want tableview to reflect the changed constraints of cells. one solution is to reload the cells whose layout constraints have been updated using tableview.reloadRows(at: [IndexPath], with: animation) other solution is tableview.beginUpdates() tableview.setNeedsDisplay() tableview.endUpdates()
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’22
Reply to How do we prevent a user from taking screenshot ?
UITextField's property isSecureTextEntry when turned on prevents user for taking screenshot of those textfield. I think they might use this. https://developer.apple.com/documentation/uikit/uitextinputtraits/issecuretextentry
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to UITableViewCell layout not updating until cell is reused
Cell layout is not updated until cell is reused. if you want tableview to reflect the changed constraints of cells. one solution is to reload the cells whose layout constraints have been updated using tableview.reloadRows(at: [IndexPath], with: animation) other solution is tableview.beginUpdates() tableview.setNeedsDisplay() tableview.endUpdates()
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22