I am new to iPhone and lens c. I spent hours and hours and hours reading documents and trying to understand how everything works. I have RTFM, or at least in the process.
My main problem is that I want to understand how to indicate where the event is being sent, and the only way I could do this is to specify delegates, but I'm sure there is an easier / faster way in IB.
So an example. Suppose I have 20 different views and view controllers and one MyAppDelegate. I want to be able to create all these different Xib files in IB and add, however, many buttons and text fields, etc., and then indicate that they all produce some kind of event in the MyAppDelegate object. To do this, I added a MyAppDelegate object to each view controller as an IB list. Then I created the IBAction method in MyAppDelegate in Xcode and returned to IB and associated all the events with the MyAppDelegate object in each Xib file.
However, when I tried to run it, it just crashed with a read error.
I assume that every Xib file places a pointer to the MyAppDelegate object, which has nothing to do with the possible MyAppDelegate address that will actually be created at runtime.
So my question is ... how can I do this? !!!
source
share