Iphone Programming Bad_Excess

In Iphone Programming Bad_Excess Does not throw any Exception

In my case :

Problem:-
NSString *str;

if( [ str isEqualToString @"NE" ] )<= this will generate bad excess beacuse
{

}
Sol n:-
NSString *str=@" "; <= sol n NSString Can not be null while we compare it

if( [ str isEqualToString @"NE" ] )
{

}

we can get details of Bad_Excess by using NSZombie Enable

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.