-rw-r--r-- 1.1K Dec 11, 2012 · 4AFEB6A · ~1 min

Optimising an iOS app for the iPhone 5 screen

шпаргалки ios objective-c iphone 5
  1. For the xib files of your View, set Size: Freeform. The interface will then stretch to the full height of the screen. If you need full control, you can set the view size for either the 3.5" or the 4" screen and switch programmatically.
    Optimising an iOS app for the iPhone 5 screen
  2. The most important thing — add a launch image for the 4" screen. Without it, the app for some reason thinks the screen is small. And yes, if you weren’t using a launch image at all before, looks like you’ll have to start now.
    Optimising an iOS app for the iPhone 5 screen

I haven’t tried this with Storyboard yet. And one more small handy trick — if you need to detect in code whether the screen is wide or regular, you can define this in prefix.pch:

#define IS_WIDESCREEN ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON ) 

and then check it in code:

if ( IS_WIDESCREEN == YES ) {
    // use the 4" interface
} else {
    // use the 3.5" interface
}
[↵] open page optimizatsiya-ios-prilozheniya-dlya-ekrana-iphone-5.md
-rw-r--r-- 430B Nov 26, 2012 · EE42BB8 · ~1 min

FCKEditor and the new Firefox

fckeditor шпаргалки

FCKEditor broke in the new Firefox when embedded on the PHP side. The problem turned out to be in the browser version check.

// FCKeditor\fckeditor_php5.php line around 57-60
else if ( strpos($sAgent, 'Gecko/') !== false )
    {
        $iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
        /* return ($iVersion >= 20030210) ; */ // should be replaced with:
        return ($iVersion >= 10) ;
    }
[↵] open page fckeditor-i-novyj-firefox.md
-rw-r--r-- 378B Oct 10, 2012 · B5D3154 · ~1 min

Salmin

salmin видео

Over the weekend I dug up some footage from a year ago. I was filming Sasha Salmin while we were on the road to Moscow. He runs a project called [uho], and I tried to make something in a similar vein — wanted something a bit unusual, as the saying goes. He’s also the host of Record Dubstep on Radio Record. Edited it into a little art-house piece.

[↵] open page salmin.md
makoni@arm1:~/blog$ cd ../page-25/ // ← previous cd ./page-27/ // more posts →