iphone

Callback for camera shutter open event

Hi all, I have been working around in UIImagePickerController and am struck with a problem where I need to get the precise moment when the camera shutter opens in UIImagePickerController when the source type is set to camera (UIImagePickerControllerSourceTypeCamera). I have done some googling around and have realized that no one had su...

UITableViewCell UILabel Vertical Alignment Seems Off

I have a simple application that uses a few non-standard UITableViewCellStyles (like UITableViewCellStyleValue1, UITableViewCellStyleValue2 or UITableViewCellStyleSubtitle). When I run the app in the Simulator all works just fine; but when I run the app on the Device, the UILabel's don't necessarily vertically line up in the middle of t...

SQLite in iPhone:I want to Retrieving 1 row for each date from sqlite

i only want to know that whether data is available for any specific date or not.If there are more than one data with the same date, i do not want to fetch all the data.I try to use LIMIT 0,1 in where clause but it means it will fetch total 1 data for the given date range. So please tell me the way to fetch data between a date range with...

Memory leak when subclassing UIView

Hi All, I have a memory leak when just using subclass of UIView. It leaks 128 bytes and goes all the way to down thru CoreGraphics etc. My subclass is just a generated skeleton without anything in it. When I use just UIView instead of ScrollView no leak are reported. What could it be and what I am missing? Thanks a lot, ALex. ========...

MKAnnotationView disappearing on swipe and double-tap zoom

I have subclassed MKAnnotationView to create an annotation that basically draws a circle around a point on a map view through override of drawRect. The circle draws fine in the following situations (in the simulator): On initial load of the map view On swipe, but only when swipe motion is stopped before touch ends (so that map doesn't...

in app purchase urban airship help

Hey evveryone, this is first time for me here, but not last i can see from all the good questions answered here :D Here is my question: Im about ot make a new iphone app and would like to use In-App-purchase in it. Im a one man developer, so i dont have a server to hold all the packages, so urban airship is just something that fits me :...

Video embedded in a iPhone PDF reader

Hi anyone have idea of how to play the video in PDF in an iPhone Application. I have a PDF reader application done which i have used UIWebview to show the PDF, but how can i interact with the Video/Audio embedded in it. Any guess welcome. Thanks ...

NSString Returning?

hi, how can i return NSString safely without any corruption of data? for example i have done like this.. -(NSString *)compose { NSString *xml; return xml; } If xml has more than 2 kb, will it be returned safely...how can i allocate memory with autorelease every time? ...

i want to add the set setBadgeValue in my tab bar in objective-c ?

this is my code that i am using for this but i am getting the only the tab bar, no badgevalue on second item of tab bar tabBarController = [[UITabBarController alloc] init]; navigationController = [[UINavigationController alloc] init]; navigation1Controller = [[UINavigationController alloc] init]; navigation2Controller = ...

hwo i trimming the digit s from my NSSMutable string in iphone using objective-C?

I was written an http request in objective-C i got reply from this method are 200,8,"7 Infinite Loop, Cupertino, CA 95014, USA" I want to catch Cupertino, CA words from it. Therefore i was written: NSArray *myArray = [result5 componentsSeparatedByString:@","]; NSLog(@"Response: %@", myArray); NSString * state = [[myArray objectAtInde...

Weird symbols from NSXMLParser

I'm stuck with a problem; everything I try to parse with the NSXMLParser ends up with "†Êá"(name of element, elementText ...) I tried different sources (the one I'd like to parse from my server, simple NSString, and from different sources from the web which deliver XML) and every time "†Êá". //prepar request //NSString *urlString = [NS...

how to count files? (iphone sdk)

Hi all, does anybody know how to count files of a directory? I couldn't find something similar in the class reference of NSFileManager. Thanks in advance. Sean ...

Can't use IBActon for button on after installing iPhone SDK 3.2

I have no idea what happened after installing this update ... I can't do this most simple thing which I've been using for a long time. Does anyone have the same problem as I do? ...

How to rotate screen to landscape ?

Hi guys, How to rotate screen to landscape ? Can you suggest simple code ? Thanks in advance. ...

Reset a CoreData persistent store

Hi everybody, Basically, what I'm trying to do is to wipe out all data in my CoreData persistent store, then import new data. How would you do this? It seems that the simplest solution is call [NSPersistentStoreCoordinator removePersistentStore:error:] and then remove the file. Is that the best practice available? Is it thread-safe? Th...

Iphone Orientation Change

I am trying to implement orientation change functionality in my application.I have overrided -(void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation. In this method i change the frame size of the tableview(including the position of the cell items) which is present in the view. The tableview Details: ...

Help needed with AES between Java and Objective-C (iPhone)....

I am encrypting a string in objective-c and also encrypting the same string in Java using AES and am seeing some strange issues. The first part of the result matches up to a certain point but then it is different, hence when i go to decode the result from Java onto the iPhone it cant decrypt it. I am using a source string of "Now then a...

fbconnect and iphone: logout and log in as different user then execute fql query

Has anyone had problems with the following? I login as user A and get a bunch of data via fql. all is working well. then without closing the app, i logout, and login as user B. The iphone confirms that I am user B and not A. However, once the fql query is executed for user B, it just "hangs"...e.g. -(void)request:(FBRequest*)request didL...

Do I programatically add SubViews in ViewDidAppear, ViewDidLoad, ViewWillAppear, the constructor?

I'm trying to figure out from Apple's sketchy documentation which method is the best place to be initializing and adding my Views controls to the controller's view. With winforms it's fairly straightforward, as they're always initialized inside InitializeDesigner, called in the constructor. I'm trying to match the reliability of this pa...

Problem in downloading image from server in iPhone

I have an Image named "John and Tony.png".When I tried to download the image from my code with this name via an http request no image is shown.But if I remove the space between the words like "JohnandTony.png" then there is no problem to download the image.But I can't want to remove the spaces.Is there any way to do that? Thanx ...