learn resource management in ios view controller