How do I add a button on window while using storyboards, I want the button to remain always visible on all screens.
I tried adding the image on the window but its not visible.
UIWindow *window =[UIApplication sharedApplication].delegate.window;
UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 300, 300)];
[img setBackgroundColor:[UIColor redColor]];
[window addSubview:img];