Que tal amigos, en esta ocasión vamos a realizar una aplicación para iPhone usando MonoTouch que publique en twitter un comentario aprovechando la incorporación de este servicio sobre el sistema operativo directamente. En primer lugar deberemos configurar nuestro usuario y password de twitter en los ajustes del sistema de iOS, una vez que hacemos eso podemos empezar con:
1.- Generación de la interfaz de usuario con el Interface Builder, una vez hecho esto agregamos a nuestra clase principal la librería Monotouch.Twitter quién permitirá el vínculo con la API.
2.- Agregaremos un TWTweetComposeViewController y después le creamos instancia.
3.- Una vez creado, verificamos salida de tweets de ese elemento, si es correcto entonces le agregamos el texto y un vínculo (también se puede agregar imágenes). Después asignamos su acción a seguir (delegate) quién evaluará el estado del servicio, para ello enviando un mensaje de cancelación, o uno de que ya está en twitter, posteriormente mandamos llamar la variable TWTweetComposeViewController y verificamos que tenga la actualización del iOS para que pueda ejecutarse y listo, tenemos nuestro tweet en twitter fácilmente.
Cualquier duda seguimos por aquí seguimos en
@enriqueaguilar.
------------------------
Hi friends, this time we will make an iPhone application using MonoTouch to publish in twitter comment leveraging the introduction of this service on the operating system directly. First we set up our twitter username and password in the iOS system settings, once we do that we can start with:
1. - Generating UI with Interface Builder, once done add to our main class Monotouch.Twitter who allow the link to the API.
2. - Will add a TWTweetComposeViewController and then we create instance.
3. - Once created, we check out tweets that element, if it is correct then we add the text and a link (you can also add images). Then assign the action to follow (delegate) who will assess the state of the service, to do so by sending a cancellation message, or one that is already on twitter, then send the variable TWTweetComposeViewController call and verify you have the iOS update so you can run and ready, we have our tweet on twitter easily.
Any doubts we follow here in
@enriqueaguilar.

