Saturday, December 05, 2009

Quick Access to iPod Controls In Any Application & On Lock Screen | iPhone Alley

Quick Access to iPod Controls In Any Application & On Lock Screen | iPhone Alley
double clicking the "Home" button on your iPhone brings up a set of controls for volume, skipping tracks, and pausing your music without leaving the current application. There's even an "iPod" button that takes you right to the iPod application. But the fun doesn't stop there, so read on for more "Home" button tricks.

In addition to bringing up iPod controls from the home screen and other applications, you can also access iPod controls from the "Slide to unlock" screen. Wake up your iPhone by pressing one of the two buttons, then double click the "Home" button. A set of iPod controls will appear below the clock and give you access to play/pause, skip/repeat, and volume controls.

The last cool thing double clicking the home button does actually has nothing to do with music at all. By default, when no music is playing, double clicking the home button will actually bring up your Favorites list in the Phone app. This is extremely helpful when you need quick access to your phone from another application.

The "double click" feature can be customized from the Home Button preference page in Settings under General.


Wednesday, December 02, 2009

how to make Universal Binary static library for iPhoneSimulator and iPhoneOS

<span class="pun"></span><span class="pln">From man page of lipo:
The lipo command creates or operates on ``universal'' (multi-architecture) files.
It only ever produces one output file, and never alters the input file. The oper-
ations that lipo performs are: listing the architecture types in a universal file;
creating a single universal file from one or more input files; thinning out a sin-
gle universal file to one specified architecture type; and extracting, replacing,
and/or removing architectures types from the input file to create a single new
universal output file.

Example:
<font face="monospace">lipo -arch armv build/Release-iphoneos/libMylib.a -arch i386 build/Release-iphonesimulator/libMylib.a</font></span><font face="monospace"><span class="pln"> </span><span class="pun">-create -</span><span class="pln">output libMylib.a</span><span class="pln">
lipo -detailed_info libMylib.a
</span></font><span class="pln"></span>
Note:
-arch (armv|i386) can be omitted. lipo can figure out the architecture automatically.
-create and -output options have to be used to create a new Universal Binary static library.