0

How can make UILocal Notification if I need to show all body

 localNotif.fireDate = fireDate;
localNotif.alertBody = [NSString stringWithFormat:NSLocalizedString(@"%@", nil),
                        strMessage];
localNotif.alertAction = NSLocalizedString(@"View Details", nil);

localNotif.soundName = UILocalNotificationDefaultSoundName;
localNotif.applicationIconBadgeNumber = 1;

NSDictionary *infoDict = [NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"Happy_%@",strMessage] forKey:ToDoItemKey];
localNotif.userInfo = infoDict;

localNotif.applicationIconBadgeNumber = localNotif.applicationIconBadgeNumber+1;    
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];

This problem

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Alex Serj
  • 41
  • 1
  • Try this solution http://stackoverflow.com/questions/4548387/uialertview-not-displaying-complete-message – bpolat Aug 20 '13 at 09:03
  • @bpolat this will not work, as the alertView pictured above is shown on the lockscreen/homescreen – tilo Aug 20 '13 at 10:53

1 Answers1

1

Simply put: you can't. You may want to shorten the text, or display a full message when the user opens the app from this notification. Note that clipping is not just depending on the number of characters, but also on the character width (if you are supporting multiple languages).

tilo
  • 14,009
  • 6
  • 68
  • 85