iphone

iphone setEditing - action after editing complete

hi guys im working on a traditional iphone nav controller app, with Auto back buttons etc. I am working on when an 'edit' button is pressed the LHS back icon dims, my new one comes in, and then once i unclick 'edit' the back button comes back. So far, the back button goes away, and my new one comes in. but I cant put it back! I know t...

How can I add a scrollbar to an iphone site?

I created a mini-version of a site that's been optimized for the iPhone, but on one of the pages, I have a scrollbar in a container, and it shows up when looking at it on the computer, but not at all on the iphone... Is there some kind of special magic that I need or something? The css is simple: #container { overflow-x: hidden; o...

ViewController has wrong orientation after Landscape-only has been popped

In a navigation-based app, LandscapeViewController only supports landscape mode (all others support both modes). I also have a "loading screen" that advises the user to rotate the phone before continuing. This way I can make sure that when my landscape view loads, that it's in landscape mode. The problem comes when i rotate the phone to...

iPhone SDK: How to use PSTextFieldSpecifier in a TableView outside of the Settings app?

How can I implement a PSTextFieldSpecifier in a table row in my app? Would that be possible or is there any other TextField with the same behavior to use inside apps? I need a TextField with the title left an the editing area right. ...

Dot notation - Does it take parameters?

Hello there, Is it correct if I say that [anIstance aMethod]; is equivalent to anIstance.aMethod; --? If it is the case, what about methods which take one ore more parameters? Does the following statement [anIstance aMethod : aParameter]; have an equivalent dot notation? I have tried with anIstance.aMethod : aParameter; ...

Adding views to a scrolling view...

Hello. I have a view (myContactViewController.xib) which contains a Scroll View (created in Interface Builder, and which takes takes up the entire height of the window and is 960px in width — ie. 3 x the width of a single window). I'm using the Scroll View, with paging, for horizontal navigation of three subviews (all three subviews are...

push notification

hi i need to implement client side APNs in iphone, please help me with sample application. ...

problem related to NSString

I have 1 NSString *abc = @"Hardik"; i have NSMutableArray *array; now i had written [array addobject:abc]; then i'm printing,NSLog(@"array = %@", array); but i'm getting NULL why? I have declared NSMutableArray *array; in a.h file i had set @property(nonatomic,retain)NSMutableArray *array; @synthesize array; and i have synthesize it ...

Adding description between Section in UITableViewController

Just wanted to ask you if there is an easy way to add description text between sections in UITableViewController ? You can take a look at what I want to do in "Settings > General > Keyboard" in your iPhone/iPod. ...

resetting to intial value

Can anyone please tell me how to reset a multiplexlayer scene in cocos2d I want the position, score , time to be reset to intial value. can anyone please tell me how to do it ...

iPhone : Is it possible to split Localizable.strings in many files

Hi there, I'd like to know if it is possible to "distribute" the translation resources (my "Localizable.strings" files) in many subfiles. Indeed, in my application, I store text articles in many folders, and I'd like to put the translations of each articles just aside the original article, that means in its own folder. To summarize, I...

Getting position of the annotation relative to screen

I'd like to acquire the position (not map coordinates) of the annotation relative to the screen. For example, for an annotation on the map, I'd like to know how far that particular pin is from the top left corner (0,0). I've looked at the documentations, and it does not provide information on its absolute or relative location. I'll lo...

How to disable keyboard tap sound on iphone?

How do we disable the keyboard tap sound programatically? I am sure it's a setting in UItextfield. ...

How to vibrate an iPhone ad infinitum

Wondering what code in objective-c should I use to shake the iPhone continuously... ...

UITableView: How to make the UITableViewCellAccessoryDetailDisclosureButton appear on selection?

Hi all. I'd like to have all the rows on my table view use UITableViewCellAccessoryNone (e.g. no button on the right) unless they are selected, at which point I want to use UITableViewCellAccessoryDetailDisclosureButton. E.g. only one row (or none if there's no selection) has the button at a time. Is this possible? Doing the usual thi...

SslStream.AuthenticateAsClient Exception when using iPhone Apple Push Notification Provider (apns-sharp) C#

I receive the following exception when using the Apple Push Notification Provider (apns-sharp). The push notifications work on my development machine however it will not work within the Rackspace Cloud hosting. I have the exact Rackspace Cloud custom medium trust configuration running with my dev. machine so the medium trust can't be ...

Update UITableView titleForFooterInSection for UISlider's valueChanged?

I have a UITableViewCell which has a UISlider in it. I have a footer text for the tableview that I would like to update with the value of the UISlider. However, calling [self.tableView reloadData]; does not work for the UISlider, as it is too many calls. I am able to update the cell correctly (it also shows the value), but I am unable t...

send an HTML formatted email using MFMailComposeViewController

I am formatting a mail with HTML content and sending it using MFMailComposeViewController.But on the receiver side mail is not reaching in HTML format.Only Plain text is visible.How could I resolve this issue.Thanks in advance. ...

How to set a default value to a UITextField when the application is loaded?

Hi, I'm a Objective-C newbie and I'm currently trying to build an app which has a UITextField (called "initial_dose") and I'm wondering how can I set a default value which will be visible straight after the application is loaded. I kind of know how to set the value but not sure WHERE I need to call this? initial_dose.text = "@myInitia...

UINavigationController template

When I open the new file dialog I see only 3 Cocoa Touch Classes: Objective-C class, Objective-C test case class, UIViewController subclass. When I last worked with Xcode, before I updated it, I remember there were more than 3 options, which included what I'm looking for: UINavigationController. So where can I find this template to crea...