Friday, July 29, 2011
ICloud APIs
Tuesday, July 26, 2011
Implement UIWebView With a Transparent background in iPhone
Customize UISlider color
Thursday, July 14, 2011
How to Prevent iPhone from Sleeping
To disable the timer, set the idleTimerDisabled property to YES,
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
Date Formatter Examples
NSDateFormatter
To save you some time, here are several simple examples for displaying date information:// <strong>Output -> Date: 10/29/08</strong> NSDate *today = [NSDate dateWithTimeIntervalSinceNow:0]; NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease]; [dateFormat setDateStyle:NSDateFormatterShortStyle]; NSString *dateString = [dateFormat stringFromDate:today]; NSLog(@"Date: %@", dateString); |
How to “unfreeze” your iPhone Application
NSNotificationCenter
but sometimes that is overkill. A much simpler approach is to use one of the following performSelectorOnMainThread
methods on NSObject
:performSelectorOnMainThread:withObject:waitUntilDone: performSelectorOnMainThread:withObject:waitUntilDone:modes: |
CGRect, CGSize and CGPoint
Rename an Xcode Project
Renaming an Xcode Project
First, click on the Project menu and select Rename:From there, fill in the new name, I’d also recommend creating a snapshot as a precaution:
Renaming an Xcode project is no longer a mysterious, troublesome endeavor.
Capture iPhone Simulator Screenshots – Revisited – iPhone Simulator Cropper
iPhone-Simulator Cropper
This tool works by capturing the screen of the simulator runnning on your system. One really slick feature is the option to create captured images in two primary formats – first, a format suitable for upload to iTunes for your application screenshots – second, capturing a screenshot that is suitable for display on a website.How to Prevent Your Application from Being Placed into the Background
Even with this built-in convenience, they are times when this default behavior may not be ideal. For example, depending on the application, it may require a fair amount of additional development time to properly manage this state change. In such cases, simply quiting the application may be preferred.
Get UDID from iTunes
Begin by plugging in the device and starting iTunes. Choose your device in the DEVICES section on the left side of iTunes. At this point you should see the iPhone stats (name, capacity, software version, etc) similar to the figure below. By default the serial number will be shown on the second line from the bottom:
If you click the Serial Number, the content of that row will change to show the UDID:
Adding Text Message to an ActionSheet
Wednesday, July 13, 2011
Xcode 4 has semantic issue
The simple code is:
then the "Semantic Issure" will occur:
iPhone Splash Screen Tutorial
Creating a Splash Page
We will be adding a splash page that will fade out into our main game screen. Start by downloading this image and adding it to your project’s Resources Folder. Make sure you check the box to copy this image to the project’s directory.Friday, July 8, 2011
Creating Static Libraries For iOS
What’s a static library
In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static.On the iPhone, static libraries have a .a extention and can only contain code. This means that any resources (xibs, images, etc…) must be packed either in a bundle or shipped separately than the library. We won’t go into this part today.
Wednesday, July 6, 2011
iChat: How to Change Your Displayed Name or Bonjour name
Note: Following these steps changes your Address Book card for all places that you use it, not just iChat. 1. Quit iChat if it is open.
2. Open Address Book.
3. Choose Card > Show My Card.
4. Click the Edit button.
5. Edit your first and last name.
6. Save changes by clicking the Edit button again or by selecting a different card.
7. Open iChat. Your revised name appears after you log in.
Friday, July 1, 2011
Apple Patents Improve iPhone Security With Biometrics
In a hint of things to come, more patents submitted by Apple just a few months ago show advances in future security designs for iPhones and notebook computers. The new authentication methods include several biometric technologies that would verify the identity of a user without any additional input from the owner of the device.
Examples would use cameras and software for facial recognition or allow a touch screen to identify a fingerprint. These methods could authenticate a user and protect private information without the current delay required when entering a passcode.
Apple has also envisioned systems that would identify a user based on retinal patterns, the shape of their ears, or the sound of the user's voice. Other methods described in the patent application would have the user touch a sequence of shapes or gesture on the device in a particular pattern to unlock.
Although it sounds far-fetched, with further advances in mobile hardware even Apple's suggestion that DNA could be analyzed to authenticate may not be too far off.