문제

Earlier i had posted this: What should be the better way for localizing iOS project?

Now I have done projects for both the ways and I am satisfied with the answers given over there.

In .strings file localization, if there is a username UILabel then instead of assign values in .nib itself, we do create an IBOutlet for that and in .m file we are assigning values. So is there any extra memory consumed by that IBOutlet?

도움이 되었습니까?

해결책

It's perfectly fine to have IBOutlet for accessing it .m file for the purpose of modifying the appearance. It will not give you any extra memory overheard, Even if you declare it with retain it will just increase the retainCount BUT don't forget to release it in dealloc if you retain the UILabel.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top