awakeFromNib an Objective-C instance method which Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file
Questions tagged [awakefromnib]
81 questions
0
votes
1 answer
iOS: rewriting from nib to storyboards
I'm working on updating (i.e. rewriting) a fairly simple iOS app using storyboards (the previous version was using xib files). This rewrite is partially for my own edification since the original app was written by a friend of mine and I'm finally…

Ed Sinek
- 4,829
- 10
- 53
- 81
0
votes
1 answer
Button with two titles/methods
everybody knows the button in the app store, that says "buy" and when you bought it it changes to "download". I want to have a similar button with "download" and "delete". But I couldn't figure it out how to create it. The methods aren't the…

Julian Herbold
- 537
- 9
- 20
0
votes
2 answers
awakeFromNib not called when using instantiateWithOwner: method
I have a little problem and I need to understand how stuff works. I've searched within SO but I didn't find any valid solution.
My scenario is the following.
I have a UITableViewController that loads cells (within its table using) by means of UINib…

Lorenzo B
- 33,216
- 24
- 116
- 190
0
votes
1 answer
how to load xib view(UIViewController) from xib(UITableViewCell)
Here is what I already have;
I have loaded a Custom cell from XIB file (UITableViewCell)
This custom cell contains Button A and B
Created a IBAction to handle Button A
loaded above XIB file in MyTableView class (UIViewController)
Now I want to…

Faisal Ameer
- 416
- 5
- 13
0
votes
1 answer
Why is AwakeFromNib getting called repeatedly when using storyboards?
I have a storyboard application. When the first view is loaded on startup, I have this code to instantiate my main background thread and it all works fine.
public override void AwakeFromNib()
{
base.AwakeFromNib();
//…

nbonwit
- 305
- 4
- 12
-1
votes
2 answers
Nib load failure when presenting its view controller
I have this function in a class that inherits from NSObject:
open func showCustomDialogInView(vc: UIViewController) {
let bundle = Bundle(for: CustomDialogViewController.self)
let customDialog = CustomDialogViewController(nibName:…

AppsDev
- 12,319
- 23
- 93
- 186