iphone

How to change the width of UINavigationItem::leftBarButtonItem ?

Hi, is it possible to change the width of the leftBarButtonItem of the class UINavigationItem? The default width is actually to short for my strings and I would like to enlarge the item as I have no title. Best, heinrich ...

How do I build a static library for iPhone?

Hi, I think that I've looked everywhere for an answer to my problem but without any luck. I'm trying to create a simple static lib to run on the iPhone device but I keep ending up with XCode saying that "file is not of required architecture" and I've tried every build flag that I found without any luck. I've got it to work on the emul...

push notification receive and handle(help plz)

I have 2 problem I implement notification , install in my phone but when I send notification from provider, I didn't receive any notification , but when i use another phone i receive notification. Is there any setting for receiving notification? where of my code i must implement codes that must run when i click on"View button" on notif...

iPhone - Change target or selector for Back Button on UINavigationController

The default behaviour when pushing a UIViewController on a UINavigationController is for the OS to display a back button that pops the UIViewController off again. I have the desire to set a different behavior for this back button (to go back two screens) - is there anyway I can do this without having to create my own back button with cu...

How to maintain logged in status with web server in an iPhone app?

Simply, I would like to have an iPhone app that logs in to a web server with inputted username and password values and then maintains this login, so that the user can POST data to the server. Is this just an issue of using cookies? If so, how do you perform a check to verify the user is logged in? Thanks. ...

Difference between addSubview and insertSubview in UIView class

Hello All: What is the difference between addSubview and insertSubView methods when a view is added programmatically? Thanks Ashwani ...

How to use Apple Push Notification sandbox as a virtual device?

Apple's APN Service Programming Guide in the Provisioning and Development section claims that "[t]he sandbox environment also acts a virtual device, enabling simulated end-to-end testing." However I couldn't find any information how this virtual device can be accessed (e.g. how do you get a device token, how do you check the status of no...

Apple Push Notification-Unable to callback didRegisterForRemoteNotificationsWithDeviceToken

I have been simply trying to get deviceToken from my iPhone application using Apple Push Notification Service. I don't have any implementation on server side for the time being. I have created APP Id, got SSL certificate, Provision Profile with APN and calling - (void)applicationDidFinishLaunching:(UIApplication *)application { //view ...

On the iPhone, how do i parse a html page to get all the RSS links?

in html an rss link looks somewhat like this <a class="rsslink" href="http:the_url">The feed title</a> i would like to get all links that match this description from a html page that has a list of rss feeds. anyone know of a good way to parse, with some sample code? ...

iPhone : Parse XML file with attribute

hi all, i want to parse the XML file. i am enable to parse simple XML file. but there are little complex XML file <?xml version="1.0" encoding="utf-8"?> <Level> <p id='327'> <Item> <Id>5877</Id> <Type>0</Type> <Icon>---</Icon> <Title>Btn1Item1</Title> </Item> <Item> <Id>5925</Id> <Type>0</T...

What's the best way to show the user something is loading on the iPhone?

Recently I've been looking to create some way of showing a user that something is being loaded. I'm sure anyone with an iPhone has seen this is apps before but what is the best way of doing it? I started using UIProgressHUD, however it was pointed out to me that you shouldn't really use private (undocumented) API's. I then I moved onto...

Animation issue with UITableView and UIView

Hello All: I am displaying data in UITableView, when the data is being loaded I show a UIView with wait message and when the is loaded in the table View, I remove the UIView using animation [self.tableView reloadData]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:UIViewA...

iPhone : parse Lengthy XML file on the Base of Key Field

hi all, i want to parse the xml File. xml File structure is following <?xml version="1.0" encoding="utf-8"?> <Level> <p id='327'> <Item> <Id>5877</Id> <Type>0</Type> <Icon>---</Icon> <Title>Btn1Item1</Title> </Item> <Item> <Id>5925</Id> <Type>0</Type> <Icon>---</Icon> <Title>Btn1I...

how to create an xml using objective-C with respect to data storage?

Hello, I want to save user generated data in an XML file in the iphone. While we have NSXMLParser to parse through any xml from a url, do we have any method to create a xml file which can be stored in the app documents directory, so that i can use the parser to read the file and then display the contents back in the app. Or using Core ...

iPod controls will exit my application

I would like to allow controlling the iPod on top of my application when the user double taps the home button. I know there are a few apps out there that allow this. Unfortunately my app just quits. Do I have to set anything to allow this behavior? Is it possible that my app prevents the iPod app from showing above it because it also pl...

how to activate mail application(built in in iphone) through programming?

how to activate mail application(built in in iphone) through programming.i want to quit my project also? ...

Touch direction in hittest

Hi all, I am developing an application for iphone which loads some information to webview.I used hittest delegate to catch the touch ,Now i need to find the direction of touch movement.Is there any way to find this...Thanks in advance ...

iPhone: Error-'this provisioning profile does not have a valid signature'?

In Developer program portal, I created a developer certificate. I registered for my iPhone deice. And registered an App ID (In App Purchase enabled). I created a provisioning profile using the created certificate and app id details. I followed the procedure that Apple said and created it. I downloaded the provisioning profile and inst...

iphone sdk- UIAlertView button with image

hello, can you please tell me if it is possible to use an uiimage view as uialertview button "text"? i was unable to find the answer googling.. thanks a lot ...

Can not load an archived NSMutableArray into a new NSMutableArray

The App will save the NSMutableArray into a archive with no problems but as soon as I try and load the NSMutableArray back into a new NSMutableArray @ viewDidLoad the app will crash. I put a break point at the end of the code where "tempArray = [unarchiver decodeObjectForKey:kDataKey46];" and tempArray is being loaded with the archived ...