I'm did functionality of timer out if User can't touch on screen for 10 minutes then my application directly goes on login screen.
For above problem i use sample code from here https://github.com/B-Sides/ELCUIApplication doing some changes in naming of class so my class is PB_TIMER_UIApplication
instead of ELCUIApplication
.
I calling PB_TIMER_UIApplication
class in main.m class it implementation as following,
return UIApplicationMain(argc, argv, NSStringFromClass([PB_TIMER_UIApplication class]), NSStringFromClass([AppDelegate class]));
I set principalClassName as a PB_TIMER_UIApplication
Now i create one property and instance method in PB_TIMER_UIApplication
like following,
@interface PB_TIMER_UIApplication : UIApplication{
NSTimer *_idleTimer;
}
@property(nonatomic) int timerTimeOutIntervals;
- (void)resetIdleTimer;
Now i want my application show alert before going login screen/timeout session. If alert button press OK then my timer again start for 10 second. That why i create an property for timerTimeOutIntervals
and that property and resetIdleTimer
instance method i want to call in throughout application. So i trying to access property/method as like Appdelegate call, [[PB_TIMER_UIApplication sharedApplication] setTimerTimeOutIntervals:10];
but it show me static error ,
My question where i'm wrong and what to do for calling property of instance method from principle class?