Blog

Double tap using UIGestureRecognizer for UIWebView

Today we are going to show how to catch the Tap events from a UIWebView and same for double Tap. Using an UIWebView wView, we create new object UITapGestureRecognizer tgr UIWebView  * wView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)]; UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(DobleTap: )]; Now we set the

Read more

How to get the country name on iPhone/iPad

Apple uses the ISO standard ISO-3166 for representing the country names. ISO 3166-1 defines codes for the names of countries, dependent territories, and special areas of geographical interest. For example: ISO english country names Alpha-2 Alpha-3 Numeric code ISO 3166-2  United Kingdom GB GBR 826 ISO 3166-2:GB  United States US USA 840

Read more

How to write text in an iPhone CGContextShowTextAtPoint

I’m going to show how to write a text on an iPhone using the CGContextShowTextAtPoint. First problem is that by default the text will appear inverted, so we need to tranform it. A possible solution could be: void drawText (CGContextRef myContext, char *title, int x, int y,

Read more

iPhone/iPad. Determining available memory programmatically

To determine the available memory in an app we use the next method: to have a class with an static method where we use the Mach VM statistics #import <mach/mach.h> #import <mach/mach_host.h> +(void) print_free_memory { mach_port_t host_port; mach_msg_type_number_t host_size; vm_size_t pagesize; host_port = mach_host_self(); host_size = sizeof(vm_statistics_data_t)

Read more

How to do vertical alignment for UILabels

The easiest way is to add a method to the UILabel class. @interface UILabel (VerticalAlign) Include in your file (or create a new one) this interface to extend the current UILabel one: @interface UILabel (VerticalAlign) – (void)alignTop; @end Add the method code in the .m file: – (void)alignTop

Read more

Latest Posts

  • Learn Irregular Verbs Learn Irregular Verbs
    This app allow you to learn the most common 120 irregular verbs used...
  • English Phrasal Verbs English Phrasal Verbs
    iPhrasal shows 100 common phrasal verbs with meanings, examples and audio recordings. iPhrasal...

Partners & Alliances

Sample Image

Sample Image

Sample Image

United Kingdom

43a Golders Green Road
Barnet, London NW11 8EE
Phone:(+44) (0) 208 144 9968
Fax: (+44) (0) 208 144 9968

Spain

Universidad de Deusto
Av. Universidades 24, Ed. ESIDE 4º
48007 Bilbao - Spain
Phone: (+34) 944 139 090
Fax: (+34) 944 13 91 24
Email: contact@imedian.net