コード例 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            StyleApp ();

            PerformSelector (new Selector ("UpdateLocation"), null, 1.0f);

            captureButton.TouchUpInside += (sender, e) => {
                var flickr = FlickrManager.GetAuthInstance ();

                if (!flickr.IsAuthenticated) {
                    var avc = new AuthenticationViewController ();

                    avc.AuthenticationCompleted += token => {
                        Console.WriteLine ("Token came back as + " + token);
                        this.DismissModalViewControllerAnimated (true);
                        TakeAPhoto ();
                    };

                    this.PresentModalViewController (avc, true);
                } else {
                    TakeAPhoto ();
                }
            };

            // Perform any additional setup after loading the view, typically from a nib.
        }
コード例 #2
0
 public AuthenticationWebViewDelegate(AuthenticationViewController avc)
 {
     _avc = avc;
 }