07
Jun

Use the following code for displaying a custom text on Alert view box.

NSAlert *alert = [[NSAlert alloc] init];
alert.alertStyle = NSWarningAlertStyle;
alert.messageText = @”Alert Heading”;
alert.informativeText = @”Alert Description”;
[alert runModal];
[alert release];

, ,

shinu.s
Posted by on 07 Jun 2011 by shinu.s in Apple MAC, Cocoa, iPhone, Mac OS X, Objective C

Add reply

*