예제 #1
0
        public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            var changeLoginGroup = GroupedData [indexPath.Section];
            var changeLoginEntry = changeLoginGroup.ElementAt(indexPath.Row);

            var cell = (TSSettingsTableViewCell)tableView.DequeueReusableCell(changeLoginCellId);

            if (cell == null)
            {
                cell = new TSSettingsTableViewCell(changeLoginCellId, fontSize);
            }

            if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                cell.LayoutMargins = UIEdgeInsets.Zero;
                cell.PreservesSuperviewLayoutMargins = false;
            }

            cell.TextLabel.Text = changeLoginEntry.EntryData.Title;
            cell.TextLabel.Font = UIFont.SystemFontOfSize(14);
            cell.TextLabel.HighlightedTextColor = UIColor.Orange;
            cell.Accessory      = UITableViewCellAccessory.DisclosureIndicator;
            cell.SelectionStyle = UITableViewCellSelectionStyle.Gray;
            return(cell);
        }
예제 #2
0
		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			var cell = (TSSettingsTableViewCell)tableView.DequeueReusableCell (changeLoginCellId);

			if (cell == null) {
				cell = new TSSettingsTableViewCell (changeLoginCellId, fontSize);
			}

			if (UIDevice.CurrentDevice.CheckSystemVersion (8, 0)) {
				cell.LayoutMargins = UIEdgeInsets.Zero;
				cell.PreservesSuperviewLayoutMargins = false;
			}

			cell.TextLabel.Text = headerTitle[indexPath.Row];
			cell.TextLabel.Font = UIFont.SystemFontOfSize (14);
			cell.TextLabel.TextColor = UIColor.White;
			cell.BackgroundColor = UIColor.DarkGray;
			cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
			cell.SelectionStyle = UITableViewCellSelectionStyle.Gray;
			return cell;
		}
        public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            var changeLoginGroup = GroupedData [indexPath.Section];
            var changeLoginEntry = changeLoginGroup.ElementAt (indexPath.Row);

            var cell = (TSSettingsTableViewCell)tableView.DequeueReusableCell (changeLoginCellId);

            if (cell == null) {
                cell = new TSSettingsTableViewCell (changeLoginCellId, fontSize);
            }

            if (UIDevice.CurrentDevice.CheckSystemVersion (8, 0)) {
                cell.LayoutMargins = UIEdgeInsets.Zero;
                cell.PreservesSuperviewLayoutMargins = false;
            }

            cell.TextLabel.Text = changeLoginEntry.EntryData.Title;
            cell.TextLabel.Font = UIFont.SystemFontOfSize (14);
            cell.TextLabel.HighlightedTextColor = UIColor.Orange;
            cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
            cell.SelectionStyle = UITableViewCellSelectionStyle.Gray;
            return cell;
        }