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 →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 →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 →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 →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 →

