Such small problem, but can cause lot of irritation. To prevent UITextField from being cleared, just set clearsOnBeginEditing property to NO: inputField.clearsOnBeginEditing = NO;
Google AppEngine delayed logs
Today I faced with such problem – logs were delayed by about 30 minuted which maked development impossible, solution was pretty simple – I had to change timezone […]
Error launching remote program: failed to get the task for process
Today I had such error, and after firing, my app was closed and I was unable to debug: Solution was pretty simple, all I had to do, was […]
How to display text as texture using GLKit with OpenGL 2.0 in iPhone iOS?
It’s quite easy if you know where to start. There are two ways, you can use UILabel or NSString. With UILabel you can control width and height of […]
How to get payment method in Magento?
Just call: $payment = $order->getPayment()->getMethodInstance()->getTitle();
How to get country name from country ID in Magento?
This one is quite simple: $countryName = Mage::getModel(’directory/country’)->load($country_id)->getName();
How to fix broken serialized string in php?
From time to time previously serialized array will get broken. The most common problem occurs when string length is invalid so instead of a:2:{i:758;s:4:”test”;i:759;s:4:”test”;} you have a:2:{i:758;s:4:”test”;i:759;s:9:”test”;} becouse […]
iOS throws: “sgx error: background gpu access not permitted”
Well, this one can be really painful. But solution is simple, just make sure you are stopping every OpenGL AND sound activity in applicationWillResignActive function, not in applicationDidEnterBackground (becouse […]
Sorting custom collection in Magento
It seems to be trivial, but it’s not. If you want to use custom table and custom model, and sort collection by one of your table’s column, you […]