iphone - Can you access application delegate from within a UITableViewDataSource function? -


I am trying to detect the SQLite functionality for the iPhone, and I have some problems by reading my database file There is an overriding UITableViewDataSource function I am storing an database file location (in the form of an NSString) in my application rep in an IPvare, however, when I try to access that string from an override UITableViewDataSource function some Somewhere would like to object if I reach the string from your example how any class, then it works fine.

Is there any way to access the application representative from within the overridden UITABableData Source Functions?

This application is a singleton that holds an app representative reference. You can always access your app representative:

  [UIApplication ShareApp] .delegate  

You need to return to your own app representative class Get rid of warnings Even better, write a novel that returns to your upstream app rep:

  icon access to the #pragma app representative etc. + (MyAppDelegateClass *) sharedAppDelegate; {Return (MyAppDelegateClass *) [[UIApplication shared applicant]]]; }  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -