No, it's not wrong but once is enough. Because always when view will appear this method is executed. I ment to use this code in one place.