The iPhone determines the current network connection status, and the iphone current network connection
Import header files
#include
Determine the network connection status
// Determine the current network connection status-(BOOL) isNetworkAvailable {// create a zero address. The address 0.0.0.0 indicates querying the network connection status of the local machine. struct sockaddr_in zeroAddress; bzero (
Add the website to the iPhone's home screen and the iphone's home screen
I have an article about how to fix a website to the Start Menu of Windows and customize icons, colors, and Windows push notifications. In fact, Apple has similar functions, by adding a link tag to the head of a Web page, you can easily add a website to the iPhone's home screen in Safari to make it look like a normal app.
To implement this function, you only need to place a file named"Apple-touch-icon.png"Image, just like a
Iphone development: Getting system fonts and iphone development Fonts
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSLog (@ "-- all system fonts -- % @", [self getAllSystemFonts]); NSLog (@ "-- Current System font -- % @", [self getCurrentFont]);} // obtain all fonts of the system-(NSArray *) getAllSystemFonts; {NSMutableArray * array = [[NSMutableArray
How can I log on to facebook on iPhone 7? As we all know, China cannot log on to the official website of facebook. Users must use VPN to change the IP address of their mobile phones. Let's take a look.Step 1: Click"Set"Icon to enter settingsStep 2: Click"General"Go to general settingsStep 3: Click"VPN"Enter VPN settingsStep 4: Click"Add VPN configuration"Step 5: Select"IPSec", In the"Descripti
Preparatory work
We're going to sync and go to the website to download a sync assistant installed on your computer.
Use the following methods:
1. Now we open the Sync Assistant in the computer and then click Sync Ringtones:
2. As pictured, we click Sync Music:
3. Then we click on the add in the picture above and click on the music you uploaded, then click Make ringtones.
4. We can directly convert the MP3 to m4r so it is much more convenient:
5. Then we choose to ring our favorite
1. Remove scratches with toothpaste
Toothpaste is commonly used in daily life cleaning products, in addition to our daily teeth tooth protection, toothpaste can also be used to remove the iphone screen scratches oh. In the selection of toothpaste, as long as the general toothpaste on it, please do not use gel-type toothpaste.
Remove screen scratches with toothpaste:
The first step is to squeeze a small amount of t
We first put the iphone device on the phone to the computer on itunes to identify the iphone icon as shown below.
Then click "Backup" in the interface and click "Back Up Now".
ITunes asks "Do you want to back up the Application" window after clicking "Back up Now".
Finally, just wait for the backup to complete.
If your iOS device is the first time you connect to a computer an
"Iphone firmware upgrade Tutorial"
1, to ensure that your equipment has been connected to the WiFi network, and mobile phone power not less than 50%.
2, into the device's "set-general-Software Update" interface, when the page is entered, the system will automatically detect the current updatable updates of the latest firmware.
3, click the "Download and update" button, you need to confirm the terms of the update, and then the system will au
The first step, Baidu search to download and install ringtones more version of PP Assistant in your computer, and then the iphone to connect to the computer. After the connection is successful, find the ringtone in the software and download your favorite ringtones.
The second step, then we export the use of software download ringtones to the computer.
The third step, and then in the PP assistant to open the "audio
. Now, the only mobile phone, also fell into a hardware-only upgrade of the cliché. In my blog, "The future of the IT industry will be the software industry" has pointed out: the hardware is external, software system is the real core competitiveness. And the iphone can be in the field of mobile phones, the ipad can be opened in the Tablet era, iOS good user experience is a must. I have always believed that Apple, like the IT industry's Mr. Fashion, ha
Preface:Since the iPhone was launched at the beginning of to direct smartphones to the mobile Internet eraOn the other hand, the entire market is currently dominated by iPhone and Android phones (WindowsPhone 7 is not mature yet ). Many new smartphone users often have a very deep-rooted idea:"The iPhone is perfect. No matter which one is the best, especially the
If the system is not stable shutdown, we can directly boot on the.
In introducing the second scenario. The DFU mode is a mode in which the Apple system fails to boot, and the recovery mode can be recovered using itunes. But your mobile phone is not a problem, mistakenly entered the DFU mode as a result of the inability to open is thought to be a mobile phone failure, in fact, very good solution.
Only need to hold down the power button and the home button and so on your
First, there is a problem entering the UDF:Key is the black screen after pressing the power key to the screen lit the +home key and then press the black screen 4 seconds or so after the home button and then press about 7 seconds is the UDF interfaceNot the interface ~ All Black. You can not drive the power button.Then download itunes I was the next itools mom to toss half a day ...Then there is a small mobile phone, after the search for music into the next to recover.iphone Flash machine
Andy -- breeze original, reproduced Please note: http://www.cnblogs.com/huangdongcheng/archive/2011/11/05/2236916.html
1. Window: uiwindow
The iPhone rule is a window with multiple views. The window is the bottom layer that you see in the app. It is fixed and can be ignored basically, but you need to know the architecture of each layer.
2. View: uiview
Uiview is the basis for the user to build the interface. All the controls are drawn on this
From:Use uiimagepickercontroller to retrieve images from the iPhone photo library or camera
Using uiimagepickercontroller to select a photo library is very simple:
In the corresponding response:
Uiimagepickercontroller * picker = [[uiimagepickercontroller alloc] init];
Picker. Delegate = self; // The controller must follow the response's delegate protocol of course.
Picker.Sourcetype=Uiimagepickercontrollersourcetypephotolibrary;// Specify p
Introduction
I will demo some sample to present how to send SMS in iPhone programming.
Sample 1
The easiest way is this demo.
[[Uiapplication sharedapplication] Openurl: @ "SMS: 12345678"];
Html links:
Sample 2
We can use messageui framework and mfmessagecomposeviewcontroller to send SMS.
-(Ibaction) sendinreceivms :( ID) sender
You have to handle a callback method of mfmessagecomposeviewcontrollerdelegate so as to dismiss the modal View Con
As a first step, we can download a "hardware housekeeper" from the App Store and install it on your phone, and then we open it.
The second step, in access to the hardware housekeeper click on "Battery Maintenance" open access, the effect is as follows;
The third step, after entering the battery maintenance, so that you can see your iphone battery temperature, we note that the best not to exceed 35 degrees, then the battery temperat
In the Chrome and UC browsers of the iphone, when JSONP is used across domains, the request's accept will be: */*;IMAGE/WEBP.When there is no special handling of content-type on the backend, the IMAGE/WEBP will be returned directly, and chrome and UC will not be able to perform the JS returned by JSONP.Solution:1, abandon the Jsonp form cross-domain, instead of setting access-control-allow-originHttp://www.alloyteam.com/2012/11/html5-cors/?wpmp_switch
First, China is still the starting country for the new iphone this year, Hong Kong and Taiwan (for the first time) also ranked first echelon, plus Southeast Asia and Europe and the United States market, can predict the iphone 7 of the first batch of sales will be very tight, the initial price will certainly have the situation, so there are plans to buy users to p
and content smaller (window default is 96DPI). At last we saw the words that the ants crawled. So Apple can increase the resolution by four times times, but the display text, the icon does not shrink or see, because the Apple uses the absolute value points point to define the element, the non-Retina screen 1 points represents 1 pixels, the retina, 1 points represents 4 pixels. Of course, the content displayed on the screen did not increase.Let's look at the number of points that Apple has defin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.