I am working on this Projekt. My app is able to store some data in my Firebase Database. Once this is done the button to get to this exact ViewController should be blocked by the Button which makes the segue. I don't know where and how to declare the Button so it will be accessible from another ViewController.
My Idea: I just learned to use shared Instances to activate a haptic feedback Generator and trigger it in any place I wanted to give haptic feedback
My Code in my implementation file with :
+ (buttonHandler *)sharedInstace{
static buttonHandler *_sharedInstace = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstace = [[self alloc] init];});
return _sharedInstace;} -(id)init {
self = [super init];
if (self)
{
[self.MyButtonIWantToDisable setEnabled: NO];
}
return self;}
My Problem: I cant reach the Button to turn it off
Best regards Roman