예제 #1
0
        public void UpdateCell(string name, string text, string commentDate, UINavigationController navigationController, string id)
        {
            nameLabel.Text   = name;
            commentText.Text = text;

            dateLabel.Text = Utils.TimeAgoDisplay(Utils.ConvertToLocalTime(DateTime.ParseExact(commentDate, "yyyyMMddTHHmmssfff", null)));

            dateLabel.Text += " • 0 Like";

            var           feedTapGestureRecognizer = new UIFeedTapGestureRecognizer(this, new Selector("TapProfilePictureSelector:"));
            List <Object> tapProfilePictureValues  = new List <Object>();

            tapProfilePictureValues.Add(navigationController);
            tapProfilePictureValues.Add(id);
            feedTapGestureRecognizer.Params = tapProfilePictureValues;
            imageView.AddGestureRecognizer(feedTapGestureRecognizer);

            LayoutSubviews();
        }
예제 #2
0
 public void TapProfilePictureSelector(UIFeedTapGestureRecognizer tapGesture)
 {
     Utils.OpenUserProfile((UINavigationController)tapGesture.Params.ToArray()[0], (string)tapGesture.Params.ToArray()[1]);
 }