¡@

Home 

2014/10/15 ¤U¤È 10:14:03

iphone Programming Glossary: sh

Cross compiling FreeTDS to iPhone

http://stackoverflow.com/questions/11424846/cross-compiling-freetds-to-iphone

this. This is a very condensed version of what took me nearly two months to figure out I left all the things you shouldn't do . Other documentation relating to this Basic How To on using FreeTDS http www.freetds.org userguide samplecode.htm.. my answer below. Also see saskathex answer for Xcode 4.5 updated files. iphone ios xcode4.2 cross compiling freetds share improve this question For those like me that will spend hours finding the documentation for these standard configure.. the problem. 1 Get the latest version of the FreeTDS http www.freetds.org 2 The next step is to make your own bash shell files that correctly run the FreeTDS . configure. You will need two as the simulator is i386 i686 architecture and..

Implementing Unit Testing with the iPhone SDK

http://stackoverflow.com/questions/2002330/implementing-unit-testing-with-the-iphone-sdk

this tutorial to setup unit testing on my app when I got a little stuck. At bullet point 8 in that tutorial it shows this image which is what I should be expecting when I build However this isn't what I get when I build. I get this error.. testing on my app when I got a little stuck. At bullet point 8 in that tutorial it shows this image which is what I should be expecting when I build However this isn't what I get when I build. I get this error message Command bin sh failed.. I should be expecting when I build However this isn't what I get when I build. I get this error message Command bin sh failed with exit code 1 as well as the error message the unit test has created. Then when I expand on the first error I..

How to use Git properly with XCode?

http://stackoverflow.com/questions/2615378/how-to-use-git-properly-with-xcode

developer for a while and I have recently been including git in my workflow. I have used git settings found on http shanesbrain.net 2008 7 9 using xcode with git for my workflow so far. Those settings tell git to exclude .pbxproj from merges.. exclude .pbxproj from merges Is there a real reason for doing this For example when I add a file to the project and push to origin my fellow developers will not have that file added to their xcode project when they pull. Then if one of them.. Shouldn't I just let git handle the merges for the project file Could someone please explain why or why not this file should be in merges and how to properly handle the situation when files are added to the project. Thanks. iphone objective..

Bug in iPad's html5 canvas drawimage() implementation?

http://stackoverflow.com/questions/2878580/bug-in-ipads-html5-canvas-drawimage-implementation

. Specifically this overload void drawImage in HTMLImageElement image in float sx in float sy in float sw in float sh in float dx in float dy in float dw in float dh When slicing an image and scaling it down it seems that Safari sometimes.. 0 0 256 256 ctx.drawImage timg 0 0 128 128 0 0 63 63 ctx.drawImage timg 0 0 128 128 128 0 65 65 timg.src http amirshimoni.com ipadbug1 1234.jpg script body onload draw canvas id cc width 256 height 128 canvas body You can run it here or.. . This bug doesn't seem to exist on any other browser including desktop Safari. It also seems to go away if you refresh the page on the iPad. Am I doing something wrong with drawImage Can anyone figure out why this is happening and if there..

what is the best way to play sound quickly upon fast button presses xcode?

http://stackoverflow.com/questions/3128283/what-is-the-best-way-to-play-sound-quickly-upon-fast-button-presses-xcode

. if not what is the best way to play the sound which responds really well iphone objective c ios audio uibutton share improve this question Speaking from experience AVAudioPlayer works quite well at playing multiple sounds at the same.. for each sound file that you play. Be careful about releasing the allocated players though unless you know you are finished with them. Unless you have very large sound files which might take a short second to buffer you'll have to figure out.. players though unless you know you are finished with them. Unless you have very large sound files which might take a short second to buffer you'll have to figure out for yourself if you can live with any latency or not I've never had any issues..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

touch 2010 04 universal static libraries There's some bugs in his script that means it only works on his machine he should be using BUILT_PRODUCTS_DIR and or BUILD_DIR instead of guesstimating them Apple's latest Xcode prevents you from doing.. Simulator part isn't the same as the arm6 arm7 difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions.. with a project embedded in another project although I highly recommend NOT doing that ever Apple has a couple of show stopper bugs in Xcode if you embed projects inside each other from Xcode 3.x through to Xcode 4.6.x Bonus script to let..

resize cell.UIImageView.image

http://stackoverflow.com/questions/3553331/resize-cell-uiimageview-image

YES cell.imageView.layer.cornerRadius 5.0 float sw image.size.width cell.imageView.image.size.width float sh image.size.height cell.imageView.image.size.height cell.imageView.transform CGAffineTransformMakeScale sw sh but it doesn't.. float sh image.size.height cell.imageView.image.size.height cell.imageView.transform CGAffineTransformMakeScale sw sh but it doesn't work i'am sure that's right.. any body can help me. iphone uitableviewcell share improve this question.. sw sh but it doesn't work i'am sure that's right.. any body can help me. iphone uitableviewcell share improve this question If your cell is a built in cell it is supposed that the cell will resize all the images to a..

iPhone Dev: Xcode debugger does not stop on breakpoints

http://stackoverflow.com/questions/601265/iphone-dev-xcode-debugger-does-not-stop-on-breakpoints

General Public License and you are welcome to change it and or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured.. of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386 apple darwin .warning Unable to read symbols for System Library.. file not found . warning Unable to read symbols from CoreGraphics not yet mapped into memory . Program loaded. sharedlibrary apply load rules all Attaching to program ` private var root Library Application Support iPhone Simulator User..

How to find unused images in an XCode project?

http://stackoverflow.com/questions/6113243/how-to-find-unused-images-in-an-xcode-project

up over the life of a project and it can be hard to tell if it's safe to delete any given png. iphone xcode ios4 share improve this question For files which are not included in project but just hang around in the folder you can press.. be grayed out. For files which are not referenced neither in xib nor in code something like this might work # bin sh PROJ `find . name ' .xib' o name ' . mh '` for png in `find . name ' .png'` do name `basename png` if grep qhs name PROJ..

How to build ICU so I can use it in an iPhone app?

http://stackoverflow.com/questions/8126233/how-to-build-icu-so-i-can-use-it-in-an-iphone-app

got the latest ICU source. The configure flags I'm using . configure target arm apple darwin enable static disable shared After that running gnumake runs without errors. Then I add the libraries to my Xcode project. But when I build I get.. for architecture armv6 ___sync_synchronize referenced from _ucol_initUCA_48 in libicui18n.a ucol_res.ao udata_getHashTable in libicuuc.a udata.ao _umtx_init_48 in libicuuc.a umutex.ao _initCache in libicuuc.a uresbund.ao icu_48 hasService.. thanks to Steven R. Loomis for pitching in and to Sergio Moura for getting things rolling. iphone ios sqlite icu share improve this question EDIT I can confirm that if you do as Steven R. Loomis suggests set U_HAVE_GCC_ATOMICS to 0 in..