Category Archives: Blog
Move UITextFields when keyboard opens in iPhone app
While working on my latest app, I was looking for a solution to slide the screen up when the keyboard opens so that text fields aren’t hidden by it. I came across this one: TPKeyboardAvoiding its a very simple drop in component. You copy a couple classes into your existing project, put all your elements into […]
How to change colour of UINavigationBar
By default the UINavigationBar on an iOS app is blue. Apple have some built-in styles that you can use [self.navigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque];[self.navigationController.navigationBar setBarStyle:UIBarStyleBlackOpaque]; The options available are: UIBarStyleBlack UIBarStyleBlackOpaque UIBarStyleBlackTranslucent UIBarStyleDefault *UIBarStyleBlackOpaque and UIBarStyleTranslucent have been depreciated. You should use UIBarStyleBlack and set property ‘translucent’ to yes if needed*. You can also change the colour to […]
Exclude Featured image from WordPress gallery
I needed to add the default wordpress gallery to page with a featured image but found that the featured image was also included in this gallery. The best way I found to exclude this is to add the code below to your site function exclude_thumbnail_from_gallery($null, $attr) { if (!$thumbnail_ID = get_post_thumbnail_id()) […]
Google Web Fonts
I thought that Google Web Fonts deserved a post here. I used it in a website yesterday for the first time. I have done tests previously but haven’t actually used it. Admittedly there aren’t as many fonts on there as TypeKit or Fonts.com but they still have a decent selection. It is extremely easy to pick your […]
WordPress site redirects to costabrava.bee.pl
I have just finished cleaning a wordpress website that had been hacked. The site would redirect to costabrava.bee.pl which is a malicious website. Due to this Google began showing a warning page whenever someone navigates to that site, informing them that the site is infected. I had to go through the site and locate all […]
HTML5 Boilerplate
http://html5boilerplate.com/ This template is a great starting point when creating a new website. The template contains jQuery, Modernizr, uses HTML5 tags and CSS3 also. The template comes with and index.html page which should be base of all your pages in the site, it also has a 404.html page which can easily be changed to fit […]
PullToRefresh iOS
Maybe a bit late to the table but this plugin is so easy to use but makes a huge difference to an app. It takes a couple minutes to get it working in an app so no reason not to use it if you need a way of refreshing a uitableview https://github.com/enormego/EGOTableViewPullRefresh
SBJson
I use this framework when creating iOS apps and need to parse some JSON. It’s very easy to use and I have integrated into many apps I have created. http://stig.github.com/json-framework/
jQuery form.submit() not working
I was working on a basic html form recently. The form was using the jQuery validation plugin. Once validated I needed to submit the form using the jQuery .submit() function. For some reason this was not working for me. After searching Google for a very long time and trying out lots of potential solutions I […]
Fancybox and ASP .Net Forms
Fancybox is a great jquery plugin that allows you to display content; typically images, html or external websites over the top of your website. I have used this plugin many times, but recently I used it to display a contact form on a .Net page. It worked perfectly fine in Chrome, but when it came […]