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
Post a Comment