ios - Call ViewController method from App Delegate -


My view is in the controller, which opens a different view on the basis of a pin, it works when a button One end view, I can also put it in the viewdead mode, although I am using storyboards and the view of this method is firing on each view load from the loadload of the loadload loaded from the loadload of the system, so instead I was done with my app delilete. Function c To'm looking FinishLaunchingWithOptions it is basically redirected based on the presence of a stored PIN value on the app launch.

I've imported the View Controller in App Rep. #import "ViewController.h" FinishLaunchingWithOptions using the current code:

  ViewController * RootViewController = (ViewController *) self.window.rootViewController; [RootviewConverter Inventview];   

I do this but I am getting the error

Does not the visual interface selector announce 'interview' for 'visual controller'?

Here's my whole view controller.

  #import & lt; UIKit / UIKit.h & gt; @ Interface view controller: UIViewController {IBOutlet UIT ext file * emailField; IBOutlet UITextField * passwordField; IBOutlet UITextField * Pinfield; IBOutlet UITextField * check pin; } @property (non-standard, strong) ibotlet UIWebView * webView; @property (strong, non-word) IBOutlet UIBarButtonItem * ShowEmailList; - (IBAction) showList: (id) this; - (IBAction) checkPin: (ID) this; - (IBAction) initView: (id) this; @end   

and the method in my ViewController.m file:

  - (IBAction) initView: (ID) sender {NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults ]; NSString * getPin = [Error Object foreaki: @ "pin"]; If ([getPin isEqualToString: @ ""]) {// do something} other {// do something else}}   

How to correctlyify your initView method in my ViewController Any thoughts about doing .h file to fix this error? Thank you

You need to add an argument like this method:

 < Code> [rootview controller init view: zero];    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -