Working with Interface Builder can be spontaneously use an object UIImageView to set the background of our view controller. Alternatively, you can delete this object, thus saving a little 'memory, and take advantage of the view associated with the view controller. Just plug in our view controller:
Articles Tagged 'Snippets'
Very short snippet: the UIView to display an image
jQuery snippets
Verify the existence of an element in the DOM
There will ever need to check the existence of an element of the DOM. With jQuery could be spontaneously try:
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:
Very short snippet: get the number of posts, Page and Attachment
How many of you know, the table wp_posts is used to store the WordPress post, pages and attachments. The type of the item stored is determined by the field post_type . . With select proposed below, you can "count" individually the various types of elements in memrizzate wp_posts .
Very short snippet: recording an image in the Photo Album
Easy way to save an image in the photo album of the device inside of our application (or loaded from remote):
Very short snippet: Objective-C NSString from Selector
Objective-C is a wonderful language that allows you to do amazing things. One of the most interesting aspects is its dynamic invocation of methods (messages). You can, in fact, get the address of a message from a string.
Very short snippet: UIWebView, and display PDF files inside
The object UIWebView can be used to display several files. For example you can use it to display - as well as QuickTime movies or YouTube - PDF or HTML file included in our code.
10 useful WordPress snippets
With the release of WordPress 3.0 will change many things for us developers. Updates to this major release are many and very useful for those developing with this CMS now truly complete. We could say that if you close one era and opens a new and full of possibilities. I pay tribute to the then previous versions with a range of useful snippets some very valid even with the new release.
Very short snippet: slideshow 10 lines of code
Let me show you how to implement a simple Slideshow of images with very few lines of code, using jQuery .
This technique can be implemented on any type of website, the important thing is to include the library jQuery . I used this technique to a site built in WordPress , developed in a few hours for an event.
Very short snippet: get the output of a URL in Objective-C
Perhaps I should write "Very very very, short snippets", however, is an excellent and convenient "trick" to show what I am. Running the "two" lines of code shown below, you can get the output of any URL and manipulate it.






Latest Comments
Robert : I rispsoto your questions with pleasure. The idea is really great. I am looking for a solution ...
Sting : @ Darius - you can see an example here: http://www.fight4fun.it/ clicking on: MAPS I hope ...
vik : Giustappunto I'm working on a project and the client asked me to show all the news (which are CPT) in ...
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...
paso : Hello I would like to request a service, you can use the datepicker with cform7 I spiegp best I can implement ...