Advertisement
Guest User

Untitled

a guest
May 9th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1.             postButton.TouchUpInside += delegate {
  2.                  
  3.                 Twitpic tp;
  4.                 tp = new Twitpic();
  5.                
  6.                 byte[] picture = UIImageToByte (imageView.Image);
  7.                
  8.                 string twitPicURL;
  9.                 string user = username.Text;
  10.                 string pass = password.Text;
  11.                
  12.                 twitPicURL = tp.UploadPhoto (picture, "PNG", tweet.Text, "monotouch.png" , user, pass);
  13.             };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement