Example #1
0
        /*
		/// <summary>
		/// for iPad (SplitViewController)
		/// </summary>
		public TweetElement (Tweet showTweet, MWC.iOS.Screens.iPad.Twitter.TwitterSplitView twitterSplitView) : base (showTweet.Author)
		{
			tweet = showTweet;
			splitView = twitterSplitView;	// could be null, in current implementation
		}
         */

		protected override UITableViewCell GetCellImpl (UITableView tv)
		{
			var cell = tv.DequeueReusableCell (cellId);
			if (cell == null)
				cell = new TweetCell (UITableViewCellStyle.Subtitle, cellId, tweet);
			else
				((TweetCell)cell).UpdateCell (tweet);

			return cell;
		}
Example #2
0
        public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(cellId);

            if (cell == null)
            {
                cell = new TweetCell(UITableViewCellStyle.Subtitle, cellId, tweet);
            }
            else
            {
                ((TweetCell)cell).UpdateCell(tweet);
            }

            return(cell);
        }