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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -