iphone - what is diffrence in this code with mainbundle and without? -


hello see new code me ,like push

tw *obj =[[tw alloc]initwithnibname:@"tw" bundle:[nsbundle mainbundle]]; 

normally write code this

tw *obj =[[tw alloc]initwithnibname:@"tw" bundle:nil]; 

what difference in bundle ?

there no difference in case.

passing nil initwithnibname:bundle: has special meaning. if parameter nil, means implementation should use [nsbundle mainbundle].


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -