Showing posts with label iOS. Show all posts
Showing posts with label iOS. Show all posts

Feb 22, 2013

(XCode) How to search text in xib files

After several months of dev, a project could easily become ugly, probablly contains many used resources files(like pngs). It is easy to remove images that you know they are not using anymore, but that's not working for these looks unfamiliar. So i need to check their existence, it's simple to do a search in xcode, but xcode doesn't search in the xib files. Here is a line of command you can use in the terminal:

grep -i -r --include=*.xib "text you want to search" /your project's path

This command could search for all files (*.*).

Jun 27, 2012

(XCode) How to have lower simulator in Xcode 4.3 of Lion

The Xcode 4.3 does not have a simulator other than 5.1 and 4.3, but sometimes we need to test apps on the lower environment. So here is the trick: You need to have lower Xcode installation files, and copy the simulator folders to Xcode 4.3.

For exemple:
sudo mv /XCode file/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/

Dec 7, 2010

(iOS) Available font family

A good example to list all available font family of iOS system. Check it out.