In Very short snippet: Remove scroll from a UIWebView object we saw how it was possible to remove the scroll from an object UIWebView :
Category 'D'
Private APIs in the removal of the scroll in a UIWebView object
bbPress: wrong forum search
The form presented after a search in bbPress allows to refine the results indicating the forum at which to search. The combo with the list of forums, unfortunately, has a "gross" error at the kernel level. invece del corretto forum_id . The tag select , in fact, is appointed by forum-id instead of the correct forum_id . This issue has already been reported on the development team! Nine months ago.
Very short trick: WordPress, customize the Meta Box thumbnail
In reference to this Comment : The Metabox thumbnails usually has the title set to "image evidence".
Use performSelector to pass integer parameters or boolean
The messages (methods) defined in the application (Application delegated) main can be invoked quickly by using performSelector :
1 2 | delegate ] [[[UIApplication sharedApplication] delegate] ( applicationMessage ) ] ; performSelector: @ selector (applicationMessage)]; |
Connect to Foursquare via ASIHTTPRequest
Foursquare allows through its API to access a range of features (many in this version 1) directly from our iPhone apps. We see, therefore, how to integrate access to Foursquare in Objective-C using the known framework ASIHTTPRequest to perform basic authentication.
Objective-C: obtain information from Latitude and Longitude
I respond 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!
UIWebView: catch 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
- Contained in the prototype stage fake ...
UIImage: useful snippets
, sono molto utilizzati nello sviluppo di applicazioni per Apple iPhone. The object of UIImage , along with UIImageView , are widely used in developing applications for Apple iPhone. Here is some useful code snippet-make a set of common processing:
Combining 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 *) Imageo imageB: (UIImage *) {imageB ; UIGraphicsBeginImageContext (imageA.size); CGRectMake ( 0 , 0 , imageA.size.width, imageA.size.height ) ] ; [Imageo 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 one object to UIWebView
Documented or undocumented, a feature, sometimes, you are forced to implement by force! Useful in some situations, the scroll is to remove an object from 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 present in the subject UIWebView :
Very short snippet: NSURL, and various possible
Returns the name of a file from the object NSURLRequest , allowing you to decide whether or not its extension:






Latest Comments
Joseph : Hi I wanted to ask you how you can do in the post I uploaded a gallery of 50 images, for example, ...
Joseph : Council if you want to restore all thumbs plugin Regenerate Thumbnails
Joseph : Thank you! Guide very interesting.
Giovambattista Fazioli : update: WordPress has updated the documentation of this function.
Giovambattista Fazioli : @ iLeW: of course, see here