- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. if (self.view.window == nil) { self.view = nil; } } iOS程序里面,window是程序视图层次体系的最高层.所有能看到的view,都是要加到这个window上才能被看到. 不管是直接被加到window上,还是通过…
iOS Programming View Controllers 视图控制器 1.1 A view controller is an instance of a subclass of UIViewController. 一个view controller 是一个UIViewController的子类. A view controller manages a view hierarchy. 一个view controller 管理一个视图树. It is responsible for c…
iOS Programming View and View Hierarchy 视图和视图等级 1.1(1)File → New → Project.. From the iOS section, select Application, choose the Empty Application template, and click Next. 1.2 View Basics (1)A view is an instance of UIView or one of its subclasse…
大家在使用View and Data API开发过程中,经常会用到的就是改变某些元素的颜色已区别显示.比如根据某些属性做不同颜色的专题显示,或者用不同颜色表示施工进度,或者只是简单的以颜色变化来提醒用户以示区别.作为开发者,一定会喜欢看的这样的API: //load the extension viewer.loadExtension('Autodesk.ADN.Viewing.Extension.Color'); // an array of node Id var elementIds= […