[MonoTouch] How to obtain message body

rafaelc rafaelc_70 at hotmail.com
Thu Mar 29 23:45:10 UTC 2012


Hello, I´m using MessageElement class, using this code:

while(dr.Read())
			{
				var line = new MessageElement (msgSelected) { 
					Sender = dr.GetString (1), 
					Subject = "",
					Body = dr.GetString (2),
					Date = dr.GetDateTime (3),
					NewFlag = false,
					MessageCount = 0
				};
				mensajesSection.Add(line);
			}


I want to know how to show the complete body using the method

void msgSelected (DialogViewController dvc, UITableView tv, NSIndexPath
path)
{
	// The message was selected
        // here I don´t know how to obtain the message body
       // I tried this

   //in debug mode I found Body property in tv.CellAt(path).Subviews[0]

    string msg = tv.CellAt(path).Subviews[0].Body;   // compiler error   
  
}



regards


--
View this message in context: http://monotouch.2284126.n4.nabble.com/How-to-obtain-message-body-tp4517449p4517449.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list