iOS Question Class Initialize2?

qsrtech

Active Member
Licensed User
I noticed a lot of objects have an Initialize2 and even 3 or 4, but I can't seem to make this work within my classes. I tried calling the main Initialize, kinda like inheritance but it doesn't seem to work. I realize we can add parameters to the original Initialize but there is still no optional parameters feature.

How does one go about doing this properly?

Thanks.
 

qsrtech

Active Member
Licensed User
I have to apologize. At first I was getting "Null" errors when trying to implement an Initialize2 method but everything seems to be working now. I don't know if it has something to do with forcing a complete recompile. Nevertheless it is working good so far.

EDIT!
Well unfortunately I have to take the apology back. I try to "Build release app" and compiler complains about a missing "," see attached [but runs fine in debug] Tried project clean. Funny thing is if I add a dummy parameter i.e. Initialize(Name,TargetModule,"") it complies fine but when app is run on device it crashes.
 

Attachments

Last edited:

qsrtech

Active Member
Licensed User
So there's not much point in having an initialize2? Still doesn't explain why it compiles/works in debug mode but not release.
 

qsrtech

Active Member
Licensed User
Well i don't think it's fair (or consistent) that libraries can have them but we can't.
 
Top