In iOS, the app delegate is responsible for managing the app throughout its lifecycle by responding to events such as launch and termination.
Questions tagged [appdelegate]
2019 questions
0
votes
0 answers
Open ViewController from handleWatchKitExtensionRequest
I faced with such a problem that I can not open my NewsDetailVievController of handleWatchKitExtensionRequest.
-(void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary…

user2759544
- 181
- 1
- 10
0
votes
1 answer
Trying to HideAllOtherApplications in AppDelegate
I have been trying to find a way to hide other applications programmaticly in my AppDelegate. I tried:
func hide() {
NSLog("hide")
NSApplication.hideOtherApplications(self)
}
The error seems to be in the "self". I am pretty sure it is a really…

Devapploper
- 6,062
- 3
- 20
- 41
0
votes
2 answers
RootViewController not being set from AppDelegate?
I'm using an archived object to determine which view needs to load on startup (or just opening the app from sleep) with boolean flags. Although my if statements evaluate correctly, the code within them does not.
Here is what's in…

Cole
- 2,641
- 1
- 16
- 34
0
votes
2 answers
Why does navigation controller not appear in run time?
I use Xcode 6. I have several view controllers connecting together with present Seques(push). I set the initial point to navigation controller. My app loads with view or table view controller based on one circumstance. I embedded in Navigation…

Mina
- 85
- 1
- 9
0
votes
2 answers
Watchkit , openParentApplication with WatchKit Extension
First times doesn't work "Null"( before open App in iPhone )
and some times doesn't work but i want one loop or timer for repeat this request for get result :
here is my code
- (void)application:(UIApplication *)application…

bilioo
- 53
- 7
0
votes
2 answers
Instantiating View Controllers from Appdelegate
If a Push Notification comes in and the user taps it, I load a specific view controller via this code:
let tabbarController = storyboard.instantiateViewControllerWithIdentifier("employerTabBarViewController") as!…

Sierra101
- 251
- 3
- 12
0
votes
1 answer
Doesn't show HomeViewController after animation in AppDelegate
I'm trying to do an animation in AppDelegate when starting the application. (From this tutorial: http://iosdevtips.co/post/88481653818/twitter-ios-app-bird-zoom-animation)
I would like to make the mask on my HomeViewController
This is my…

Vale
- 1
- 2
0
votes
1 answer
Change initial viewcontroller in AppDelegate swift
I have created a first Swift app, with a single viewController setted in the AppDelegate function:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
var…

skifen128
- 35
- 3
0
votes
1 answer
Trouble retrieving PFusers from parse.com for an IOS app
I am building an IOS app in swift 2.0 in xCode Beta. I built a custom user class which subclasses PFUser, relevant excerpts of the class are reproduced below
import UIKit
class User: PFUser, Entity {
// MARK: - Declare Field Variables
…

Troy Murtha
- 1
- 2
0
votes
2 answers
Do app delegates need to be released?
Still new to the memory management in iPhone apps, I have a newbee question.
Let say I have some method that use attributes of the AppDelegate. At the beginning of those methods, I get the delegate like:
// Get delegate
MyAppDelegate *delegate =…

Luc
- 16,604
- 34
- 121
- 183
0
votes
1 answer
adding custom horizontal scrollview in all view controllers
I am using a horizontal scrollview with some buttons and a search bar.I need to show it in all view controllers .Here is my code
for (int i=0;i<[[[xmlSubDictionary objectForKey:@"pillars"]objectForKey:@"pillar"]count];i++)
{
[pillarArray…

RakeshBiswal
- 59
- 10
0
votes
1 answer
iOS AppDelegate as singleton failed to return same instance
I tried to made my AppDelegate as a singleton and access it through my application like :
AppDelegate.h
/.../
@interface AppDelegate : UIResponder
+(AppDelegate*)sharedAppDelegate;
@end
AppDelegate.m
#import…

bluenowhere
- 2,683
- 5
- 24
- 37
0
votes
1 answer
Warning: Attempt to present UINavigationController whose view is not in the window hierarchy?
I Am Doing this from AppDelegate.
I have two storyBoards, main storyBoard and secondStoryboard. When i set main interface to secondStoryboard from deployment info of app target, and run the project the following code works as charm.
But When i set…

dip
- 3,548
- 3
- 24
- 36
0
votes
1 answer
AppDelegate unknown issue that allows to build app but then crashes it, how to fix?
I'm really new at coding with Swift language and developing for iOS and OS X languages in general. So I was writing a simple program, just to get to know some basic features, syntax, etc of the language, and then I got this weird problem in the…

Nicolas Fonteyne
- 164
- 3
- 13
0
votes
1 answer
Custom View Controller on launching
After a few years off the grid, I'm back programming a quick iOS application and I have to say it seems I need to get back on track. :D
I'm just trying to set-up a Login view upon launching the application and I am stuck with the following issue on…

gotye
- 958
- 2
- 14
- 33