I have a UITableView
in my .xib file. I have this password protected, by obscuring it with another UIView
that has a UITextField
. Once the password has been entered, I remove the UIView from the superview. However, I am running into an issue that the UIView
is not covering up all of the UITableView
on the 6 and 6 Plus. How can I go about doing this, given that the UIView is not the main view in the xib, and simply added? I use auto layout and told it to pin to leading and trailing, but it isn't working.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- 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
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- Popover segue to static cell UITableView causes co
You also need to pin its top and bottom edges. If it's in the same view that contains the stuff that you want to obscure, then pin the edges to the edges of the obscured content. Really, though, the comment about using a modal dialog is spot on.
I finally managed to solve this on my own. I already had told it to pin everything, so that rendered @NRitH answer as useless. I simply added
before adding the view as a subview, and it worked perfectly.