Determine whether it is a simulator or not.
Go directly to the code !!!
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. self. title = @ "determining whether it is a simulator"; [self isSimulator] ;}# pragma-mark-functions-(void) isSimulator {if (TARGET_IPHONE_SIMULATOR) {NSLog (@ "Simulator");} else {NSLog (@ "not Simulator ");}}
How can we determine whether the monitoring camera is analog or digital?
First, the difference between a digital camera and a simulated digital camera is generally called a Network Camera, it encodes the collected video signal and transmits it to the back-end DVR Network hard drive video recorder or server through the network cable/network, analog cameras directly transmit video signals to hard video recorders through coaxial cables without coding. Currently, network cameras on the market support both network transmission and analog output; the former can be used for transmission over a network cable, and the latter can be used as a coaxial cable. For optical transceiver, you must check what kind of products you choose and whether optical transceiver that supports analog-to-analog conversion, supports hybrid insertion;
How can I determine whether a program runs in a virtual machine?
Check whether there are any virtual machine service processes.