Wednesday, May 22, 2013

[ios] iphone simulator file system location

open a terminal, then cd ~/Library/Application\ Support/iPhone\ Simulator
then I can see 6.1 folder.
The app folder will be in 6.1/Applications/xxxxx  where xxxx is the app id. or you can check all folders to find where is your app.

Thursday, May 16, 2013

[ios] some issue: async, guid, priority queue, view fade-in, image reflection



How do I wait for an asynchronously dispatched block to finish?


http://stackoverflow.com/questions/4326350/how-do-i-wait-for-an-asynchronously-dispatched-block-to-finish


Waiting on asynchronous methods using NSCondition


http://stackoverflow.com/questions/14013947/waiting-on-asynchronous-methods-using-nscondition




How to create a GUID/UUID using the iPhone SDK


http://stackoverflow.com/questions/427180/how-to-create-a-guid-uuid-using-the-iphone-sdk


JCPriorityQueue


https://github.com/jessedc/JCPriorityQueue/tree/experimental/heap-queue


Fade/dissolve when changing UIImageView's image


http://stackoverflow.com/questions/7638831/fade-dissolve-when-changing-uiimageviews-image


No-fuss reflections – generating reflections the easy way in iOS


http://aptogo.co.uk/2011/08/no-fuss-reflections/

[ios] the correct behavior of nsoperation waitUntilFinished


from network search: 
think you may have missed expectations for the behavior. If you are expecting the completionBlock to be fired beforewaitUntilFinished releases the control flow, then your expectations are out of alignment. The completion block is dispatched asynchronously back to the success/failure queue, so its not going to be triggered until the run loop spins.
What you can do instead is waitUntilFinished and then access the responsePropertyList and errorproperties of the operation instead of the completion block.