How are XIBs loaded for localized apps?

前端 未结 4 794
情书的邮戳
情书的邮戳 2021-01-02 11:23

I found after a couple of days of successfully running and debugging localized apps on the Simulator it (or the XCode deployment process) got into a state where, if the Simu

4条回答
  •  孤独总比滥情好
    2021-01-02 12:10

    if you are using

    [[Class alloc] initWithNibName:@"aNibName" bundle:nil];  
    

    change it to

    [[Class alloc] initWithNibName:@"aNibName" bundle:[NSBundle mainBundle]];
    

提交回复
热议问题