I answer to Mirko asking me how to make the opposite case proposed in Getting Latitude and Longitude in Objective-C .
Starting from the values of Latitude and Longitude you can use the class MKReverseGeocoder to obtain a range of information, such as: city, state, address in full, chap!
Archive August 2010
Objective-C: obtain information from Latitude and Longitude
UIWebView to intercept the opening of a Link
The object UIWebView component is a very useful and versatile, ideal for solving many problems. Not only is perfect to display an HTML page on the net, but you can use it for other useful purposes such as:
- Quickly display PDF documents
- View videos or pictures
- Display content HTML / CSS Local
- Fake content in the prototype phase ...
UIImage: useful snippets
, sono molto utilizzati nello sviluppo di applicazioni per Apple iPhone. The object UIImage , along with UIImageView , are widely used in developing applications for Apple iPhone. Here is some useful code-snippets to make a series of processing common:
Combine two (or more) images
1 2 3 4 5 6 7 8 9 10 11 12 | UIImage * ) combineImage : ( UIImage * ) imageA imageB : ( UIImage * ) imageB { - (UIImage *) combineImage: (UIImage *) imageA imageB: (UIImage *) {imageB ; UIGraphicsBeginImageContext (imageA.size); CGRectMake ( 0 , 0 , imageA.size.width, imageA.size.height ) ] ; [ImageA drawInRect: CGRectMake (0, 0, imageA.size.width, imageA.size.height)]; CGRectMake ( 0 , 0 , imageB.size.width, imageB.size.height ) ] ; [ImageB drawInRect: CGRectMake (0, 0, imageB.size.width, imageB.size.height)]; UIGraphicsGetImageFromCurrentImageContext ( ) ; UIImage * combinatedImage UIGraphicsGetImageFromCurrentImageContext = (); UIGraphicsEndImageContext (); combinatedImage return; } |
Very short snippet: Remove scroll from a UIWebView object
Documented or undocumented, a feature, sometimes, one is forced to implement by force! Useful in some circumstances, is to remove the scroll from an object UIWebView . : Interestingly, in general, see how you can access the components 'internal' part of the object in question: in this example retrieves the object pointer UIScrollView this object UIWebView :






Latest Comments
Giovambattista Fazioli : @ Nik: I'm happy! Good luck then!
Nik : I have Monday examining information on java, thanks to me you have been very useful, the book I was unclear ...
Mark : Thank you very much, I've lit
I solved it by setting [cc_objc] / / OptionViewController.m - ...
Giovambattista Fazioli : @ Mark: I suggest you think a more correct approach. If you run the subclass of the tab ...
louis : very clear and simple I have to admit that writing a pa hardly use delegates created by ...