void pinItButton_HandleTouchUpInside(object sender, EventArgs e)
 {
     // Check if we can pin or if we are using simulator
     if (!pinterest.CanPin)
     {
         new UIAlertView("Error:", "Pinterest SDK can't pin if you are using simulator or you don't have Pinterest app :'(", null, "Ok", null).Show();
     }
     else
     {
         pinterest.CreatePin(NSUrl.FromString("http://placekitten.com/500/400"),
                             NSUrl.FromString("http://placekitten.com"),
                             "Pinning from Pin It Demo"
                             );
     }
 }
Example #2
0
        // (void)pinIt:(id)sender
        void PinIt(object sender)
        {
            try
            {
                _pinterest.CreatePin
                (
                    new NSUrl(@"http://placekitten.com/500/400")
                    //, sourceURL:[NSURL URLWithString:@"http://placekitten.com"]
                    , new NSUrl(@"http://placekitten.com")
                    //, description:@"Pinning from Pin It Demo"
                    , @"Pinning from Pin It iOS Demo"
                );
                //];
            }
            catch (Exception exc)
            {
                string msg = exc.Message;
            }

            return;
        }