2 3 4 Page 1 of 4 1 2 3 4

iPhone: removing the shadow effect during the scroll in a UIWebView

Thursday, February 25, 2010

In this last period I worked on three applications for Apple iPhone, almost simultaneously. Two have already been approved and are on Apple App Store: TheFirst and iMakeLove. Both applications have adopted the use of an object UIWebView to view the instructions. The object is UIWebView ELEVANCE really comfortable here. [...]

How to locate images and views in Interface Builder

Tuesday, February 23, 2010

After explaining how to locate our strings in Xcode, as we see now is simple - using the same technique - locate images / views / interfaces built with Interface Builder. Locate graphics resources process, as mentioned, is the same, if we have a ' image already included in our resources, or places a new, and we want to "locate" - that is [...]

10 Useful snippet for Apple iPhone

Friday, January 8, 2010

Execute a method in n seconds performSelector The whole family is really interesting and may be useful in a multitude of cases. Its application simplest and most common is this: PLAIN TEXT Objective-C: [self performSelector: @ selector (myMethod) withObject: nil afterDelay: 3] / / - (void) (myMethod NSLog (@ "Hello World!" );) however, that the "timer" is not precise. This procedure, therefore, must be used when there is [...]

Apple iPhone: Create a custom toggle button

Friday, December 4, 2009

States UIControlStateSelected or UIControlStateHighlighted not work when a UIButton is set to work UIButtonTypeCustom! Or rather, do not work (because reserved for other types of buttons), for example to create a button in two states: toggle note. If we have created two images (stato1.png and stato2.png) for our button, we can proceed in this [...]

Very short snippet: streaming mp3 files on Apple iPhone

Tuesday, December 1, 2009

An alternative that easy to run a stream a mp3 file on the Apple iPhone could be: PLAIN TEXT Objective-C: / / Use AVFoundation Framework and the header file (. H) are added / / # import <AVFoundation / AVFoundation.h > / / In our implementation / / insert the url of the mp3 file NSString * soundFilePath = @ "http://www.server.com/test.mp3" NSURL * fileURL = [NSURL URLWithString: soundFilePath]; NSURLRequest * request = [NSURLRequest requestWithURL: fileURL]; NSData * DataRaw = [NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil]; AVAudioPlayer [...]

10 useful tips and snippets for Apple iPhone and Xcode

Thursday, November 12, 2009

Useful snippets and tricks for developers Apple iPhone, Xcode and Objective-C

Very short snippet: format a date for a control UIDatePicker

Friday, November 6, 2009

Control UIDatePicker is perhaps the most beautiful graphics control this on an Apple iPhone. Besides the beauty is also easy to use, extremely versatile and used in many situations.'s Imported then be able to "read" the date set in the control: PLAIN TEXT Objective-C: / / this method works on both the simulation is on the device (SDK 2.2 .1) NSData * date = dateInsert.date; NSDateFormatter * dateFormat [...]

Objective-C: NSLog () on C struct

Thursday, October 29, 2009

Syntax NSLog (@"%@", ...) works and is used to obtain information about objects, but does not work on C data types like struct CGRect or CGPoint, for example. To realize NSLog (@"%@", ...), also on struct type C can rely on conversion functions as NSStringFromCGRect () or NSStringFromCGPoint: PLAIN TEXT Objective-C: CGrect mioRect = (CGRect) (10, 20,30,40); CGPoint mioPoint [...]

Very short trick: 3 tricks for developers Apple iPhone

Wednesday, October 28, 2009

57x57 pixels icon application icon that will represent our application is "altered" automatically by the iPhone: it adds a rounded edge, a lighting effect and 3D. This setting can be changed by selecting the file [application name]-Info.plist and adding the property "Icon already includes gloss and bevel effects": Fullscreen, remove the status bar is always acting on the file [name [...]

Very short snippet: iPhone, random numbers

Friday, October 9th, 2009

If you need to generate random numbers in an application from the Apple iPhone you have to put Objective-C, because it proposes no class for this purpose. The solution is that proposed by the C: rand (), srand (), random (), srandom () and arc4random (). Of all the most popular is definitely arc4random (), because it requires no special initialization or duties of [ ...]

2 3 4 Page 1 of 4 1 2 3 4