iphone

iPhone app link to open skype

Is there a way to encode links in an iPhone app that will launch skype if installed on the phone? This would be similar to email, maps and phone. Any samples would be helpful Thanks ...

STOP UIWebView bounces vertically in device

I am using this code to stop uiwebview bounces vertically and its work fine in simulator 4.0.But when i installed my app in my first generation ipod it wont work. for (id subview in webView.subviews) if ([[subview class] isSubclassOfClass: [UIScrollView class]]) ((UIScrollView *)subview).bounces = NO; Can anyone help me? Is ther...

access sms detail

hi i am developing an application which identify an incoming message(sms) and make a file (within the i phone) and fill the information about sms into it. i already posted a question based on this but not satisfied with answer... because i read about a spy type software in which this was done here is the link http://www.fortiguard....

Synchronizing NSMutableArray for Thread Security ?

HI All, I have a Threaded application, in which there is a NSMutableArray, which contains the NSManagedObjects, Now i want my array to be accessed once at a time by any Thread. So how do i synchronize that array, or may be put locking mechanism on it. Thanks in Advance ... ...

Prefixing property names with an underscore in Objective C

I've always avoided underscores in my variable names, perhaps because its just not what was done back in my learning Java in college days. So when I define a property in Objective C this is what I naturally do. //in the header @interface Whatever { NSString *myStringPorperty } @property (nonatomic, retain) NSString *myStringPropert...

Make an image black and white?

Hello everyone! I have another quartz 2d (iphone) question: How to change all the colors of an ImageView to black and white and leave only red ??? DD ...

How to increase the UITableView seperator height?

I want more space(10px) between each cell.How can i do this? And i have added this code tableView.separatorStyle = UITableViewCellSeparatorStyleNone; Thanks in advance ...

Can I release an object which was added to a NSMutableArray or does this affect a crash?

Hi, i've got one question about the memory management of the NSMutableArray. I create an object of my custom class and add this object to a NSMutableArray. Is this automatically retained, so that I can release my created object? Thanks! ...

Activity indicator as one table view loads another

I've been trying for about a day to get a table cell to display an activity indicator while it loads a new view. Upon didSelectRowAtIndexPath I'd like to display the indicator while the following runs [self.navigationController pushViewController:subKeywordController animated:YES]; This controller then runs a fairly intensive SQL qu...

Create a popup "a new version of this app is available"

Hi, I would like to display a popup in my iPhone app that alert users when a new version is available in the appstore with a direct link to the iTunes page of the app. Do you know how can I implement that? Thank you for your help. ...

NSZombie shows empty object

Hello! I am experiencing problem and can't find what's wrong. As usual when I saw EXC_BAD_ACCESS message I turned on Instruments with NSZombie activated. When the error occurs and the NSZombie show message: "An Objective-C message was sent to a deallocated object (zombie) at address: 0x10083560" I click on arrow and see empty list. NSZo...

Modify class after objects are stored to file

Hi, If I store an object with NSKeyedArchiver to file. Then I edit the class and introduce new arrays and objects inside. What is the best way to initialize those new variables, so that they work for "old" objects retrieved from file? ...

want to upload iphone application at apple store...but...

hi, i have developed an iphone application using iphone base SDK 3.0 version, i want to upload application at apple store, but from other resources i heard that now these days apple rejects those applications which are not developed in SDK 4 or for iphone 4g, i just want to know that is it true or it's just a rumor !! Thanks ...

Is there a shortcut to changing settings (esp. locale) in the iPhone Simulator?

I was wondering if there's any way to speed up changing settings in the iPhone Simulator: the general case here is a way to improve repeatability of testing an app across a number of predetermined configurations, but more specifically, it'd really help if I could change both 'language' and 'region format' in Settings.app to a specific ...

Take a "screenshot" of a cocos2d node and then use it as a sprite

I am writing a game in which there are thumbnails of mini games displayed in a grid, CCSprites in a NSArray. One of these is then scaled and moved to create a zooming effect. Once it has zoomed in it is hidden to reveal the actual "live" minigame (a CCNode), which has been added to the scene invisibly while the zooming animation took pla...

UITextView Custom Auto-completion.

Is there a way to implement custom Auto-completion for a UITextView, say by giving it a NSDictionary or NSArray of Strings to watch out for? ...

How to call a method when user keep pressing a button?

Hi All, I know how to call a method when a button pressed. but, My problem is when a user keep pressing a button it has to call one method -(void)keeppressed { } where as it has to call another method called -(void)justpressed { } when user just taps the button is there any solution? ...

uipickerview causes memory leak

My problem is there is a memory leak in my application even though i am doing everything right. I am allocing a local uipickerviw, assign that to class member(pickerview) then i dealloc the local uipickerview. still i get a memory leak. i dnt understand y. somebody plz help me. UIImagePickerController *the_pImagePicker=[[UIImagePickerC...

Compiler optimalizations on iPhone

I'm building an iPhone application using Xcode 3.2.3 and I have experienced very weird behavior of the application when run in Release/Distribution Configuration. Let show the code first: - (NSTimeInterval) durationValue { NSTimeInterval duration = 0.0; if (!self.startDateTime) { return 0.0; } NSDate *lateDate = self.endDateTime...

Cannot convert to a pointer type

Hi, I'm trying to consume an ASP.net Web service, and found a utility called WSDL2ObjC. Now I'm trying to use it, and basic use is working (asking for simple data types, such as booleans or strings), but now I'm requesting an array of the "EmailServiceSvc_Email" structure, which contains "subject", "from" and "message" properties. The...