Re: UIBarButtonItem exclusive touch

2011-08-29 Thread Leon Qiao
lot simpler (with nested > dispatch_async() calls)... > > (Sent from my iPhone.) > > -- > Conrad Shultz > www.synthetiqsolutions.com > > On Aug 29, 2011, at 19:34, Leon Qiao wrote: > > > Dear all, > > > > The UI I made is like the system app "Contact"

UIBarButtonItem exclusive touch

2011-08-29 Thread Leon Qiao
Dear all, The UI I made is like the system app "Contact", there's an "add" bar button on the navigation bar. And a table view where you can tap and enter the detail view. The problem is when the user tap the bar button item and the table view cell at the same time, it doesn't work well. The code

Thumbnail view like iPhone Photos app

2011-05-17 Thread Leon Qiao
Dear all, I used to ask one question about NSCache. Actually, I need to build a view like the 'Photos' application. Now it works, but need to be improved: the speed of dragging, loading images is not good enough. Please give me some general ideas on how to load images on time and manage the cached

How to use the NSCache

2011-05-15 Thread Leon Qiao
Dear all, Have you ever used the NSCache? I'm a little confused on how to use it. I want to make a list to hold some images in memory. And the memory overload is a big problem. So I wish I could use the NSCache to manage the memory. Please send me a demo or code fragment if you have. Thanks a lot

Re: iOS rotate to interface orientation problem

2011-04-18 Thread Leon Qiao
don’t think about getting the transform; needing it is > *usually* a very bad thing meaning that something is wrong either at > the framework level (unlikely) or at app level (more likely, almost > all the time). > > -ev > > On Mon, Apr 18, 2011 at 7:30 PM, Leon Qiao > w

iOS rotate to interface orientation problem

2011-04-18 Thread Leon Qiao
Dear all, Recently, I need to do the following: 1. add a sub view of a view controller onto the window. 2. Make it fit the bottom of the window. That is, the bottom side of the view and the bottom of the window will coincide. 3. When the device rotated, the height of the subview will not be change

Re: On NSClassFromString method

2011-02-24 Thread Leon Qiao
This will force the linker to load classes from the static library > > > Another way is to reference the class directly somewhere in the code such > that it has no effect, i.e. > [ClassINeed class]; > > > -Dan Treiman > > On Feb 24, 2011, at 9:19 PM, Leon Qiao wrote: >

On NSClassFromString method

2011-02-24 Thread Leon Qiao
Dear all, I got a problem when using the NSClassFromString method to get a class. The code is used in the google docs library. It failed to get the Class object, the return value is 0x0. But I already linked the library, and it works fine when using the class itself directly. Anyone who met the sa

Re: Image preview with UIWebView

2011-01-26 Thread Leon Qiao
Hi Kyle, Thanks for your advise. I found the UIImage really wraps something that can be used to read the raw image file. Maybe I need to check the file extension and provide a UIImageView. 2011/1/26 Kyle Sluder > On Tue, Jan 25, 2011 at 10:05 PM, Leon Qiao > wrote: > > I pla

Image preview with UIWebView

2011-01-25 Thread Leon Qiao
Dear all, I plan to use the UIWebView to display the preview of some image files. It works well when opening the common files. But it seems some special formats (such as "CRW", Canon Camera Raw file) are not supported. It can be viewed via the QLPreviewController. Is there any better way to do the

"Tap to focus" on iOS 4

2010-11-23 Thread Leon Qiao
Dear all, I tried to add overlay view on the UIImagePickerController. Now it works, but it seems I can't use the tap-to-focus feature any more. Can anyone help? Thanks! -- Best regards Leon ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: iPad frame-by-frame animation

2010-11-04 Thread Leon Qiao
gain. Leon 2010/11/5 David Duncan > On Nov 2, 2010, at 8:13 PM, Leon Qiao wrote: > > > I got some problems on showing a frame-by-frame animations. I use some > png > > files in quite a big size(1024* 768). The frame rate I required is near > > 1/24. > > Consider

iPad frame-by-frame animation

2010-11-03 Thread Leon Qiao
Hi everyone, I got some problems on showing a frame-by-frame animations. I use some png files in quite a big size(1024* 768). The frame rate I required is near 1/24. I used to put all the images in one file, and then load a atlas texture. But the loading action still need more time when the image