Question: I need to show a more button on my `UILabel` when `UILineBreakModeTailTruncation` starts. ie whenever the "`...`" appears, I need to display my more button with some actions. 

What I am doing is

```
float textWidth = [myString sizeWithFont:myLabel.font].width;
if (textWidth > myLabel.frame.size.width)
{
[moreButton setHidden:FALSE];
}
else
{
[moreButton setHidden:TRUE];
}

```

But my problem is, when the number of lines of the label is set to 2, more button is shown whenever the first line of the label is rendered.

So I have tried 

```
if (textWidth > 2*myLabel.frame.size.width)
{
[moreButton setHidden:FALSE];
}
else
{
[moreButton setHidden:TRUE];
}

```

This works in most cases. But in some cases where text width is same as that of 2\* labelsWidth, more button is shown. Is there any direct method to this?

Answer: 
Since you don't have year in your date string, default will be current year, something like this :

```
DateTime dt = DateTime.ParseExact(dateString, "MM-ddTHH:mm", CultureInfo.InvariantCulture);

```
If the string is formatted correctly, **DateTime.Parse()** is what you're looking for. But I think the 'date' part of that string is incomplete for it to work.