iphone

Load data to the Table view from Parsed XML

Hi All, Previously i had a doubt regarding the Parsing XML. thanks for all for giving me help to clear that. Now i need to load the data which i parsed from the XML in to a table view. can any one help me in that. [What i need is to load the courses which a student enrolls. the xml file is created based on the login query.] Thanks in ...

Setting iphone to vibrate and setting iphone back to sound via app.

Folks, I need your knowledge here. Think about the following sittuation - my app need to set my iphone to vibrate mode on a certain time and get it back to playing sounds mode (for call receiving, sms, email, all common sound notifications) some minutes later. I've already googled that, and didn't find a good, apple accetable way of d...

UITabBarController Modify [More ...] Appearance

Hello everyone, I would like to know if there is a way to change the text in the [More ...] tab. With the code below I am able to change the text in the view, however the text in the tab remains the same. Is there a way to access it and change it's appearance. tabBarController.moreNavigationController.topViewController.navigationItem....

Adding UIToolbar to window

I have a navigation based application which I'm trying to add a unique UIToolbar that will be persistent no matter which is the current view, using this: http://stackoverflow.com/questions/1072080/persistent-uibarbuttonitem-in-uitoolbar The problem is my when I set the frame for the navigationController, the UITableView inside the navi...

Build to iPhone Simulator from TextMate

I have the Xcode bundle for TextMate and the Build and Run with XCode work fine but is there a way to pass Active Target, Active SDK or configuration into the build in order to launch the simulator? I have tried setting shell vars in the prefs pane but no luck. Thanks. ...

Is it possible to add a Splash Screen to an iPhone Web Application launched from the Home Page?

I have created an iPhone Web Application (written in HTML/JavaScript) that can be added to the home page via a launcher button. It takes about 5-7 seconds for this application to start. When starting it displays a previous screen of the application (not always the last one the user is on). Is there anyway to provide some sort of spl...

wav stopped working with AudioServices on my iPhone app?

I have a wav file that was working fine. It is played using the AudioServices methods. Suddenly it stopped working. The weird thing is if i change he wav file to a different one that works. Any idea what is going on? The non working sound is slightly longer (still <10seconds) but it was originally working so I just can't figure it out. ...

iPhone Web Application JavaScript events break after waking up from sleep.

I'm trying to build a mobile-safari/iphone web-app using jQuery code I already wrote for the desktop version of the app. The problem I'm having is that when my phone goes to sleep with the web-app running, when I wake it up (slide to unluck) the JavaScript event handlers no longer function. In this case meaning when I click on a link t...

NSMutableURLRequest timeout interval not taken into consideration for POST requests

I have the following problem. On a NSMutableURLRequest using the HTTP method POST the timeout interval set for the connection is ignored. If the internet connection has a problem (wrong proxy, bad dns) the url request fails after about 2-4 minutes but not with NSLocalizedDescription = "timed out"; NSUnderlyingError = Error Domain=k...

Emojis causing iphone to crash

Our iphone app has a chatroom where users can post comments. Recently, the chatroom has been crashing the app because users are adding emojis to their comments. I went to my server PHP script to not allow characters that aren't in the A-z0-9 range (I also allow around 30 punctuations characters) hoping that this would prevent the app/fee...

How can I draw tinted translucent images in iPhone SDK?

For the visuals in my iPhone application I'm compositing UIImages in a transparent UIView. I'd like the images to appear in their normal colors sometimes, but under other conditions I want them to be drawn tinted red. This is easy to do with opaque square images, but parts of my images are translucent, and I only want to tint the solid p...

Button works in simulator for not in App

I have a few different views in my App, all of which are viewed by tapping different buttons. All the buttons work on the simulator, but when I run the app on the device only one button does not work. I went over and over my code and re coded that one button and re-connected it in IB to make sure that i did not mess something dumb up, ...

Core Data and xcdatamodel files vs the generated files

Is it the generated files from the data model that matters more or is the actual xcdatamodel file? And is it possible to change the ownership property from 'retain' to 'copy' for the files that are autogenerated from the xcdatamodel class? ...

iPhone App - Generate Alert Popups when App is Closed

In creating an iPhone app, is it possible to generate a popup alert on the iphone (similar to a Push notification) when the app has been closed. A simple example would be to have an app that can set a reminder at 5:00PM January 5th, 2010. The app can be closed and the reminder will popup at that time. I don't think this is possible bu...

UIView subclasses default properties

What's the proper way to set a default value for a UIView subclass's property? Although I'm not using them yet, if the XIB provides a value I'd like it to override the default. But if the XIB doesn't provide a value, I'd like my default value. In this case, I'm thinking of a CGFloat value specifically. While it could be set to 0.0 this...

How to paints a transparent circle like using CGContextClearRect to draw a transparent rectangle

Hello All, Do anyone know how I can draw a transparent circle on a CALayer just like using CGContextClearRect to draw a transparent rectangle? My requirements is that I need to draw a mask on a picture, in some cases, I need to erase it, but CGContextClearRect only allow to draw a rectangle, I wonder if there is another way to do the sa...

Hide UIAlertView

Is there a way to hide the UIAlertView programatically. I am displaying a progress view in mine and when the progress view is = 1.0 I want to hide the UIAlertView. ...

UIImagePickerController has a black bar at the bottom by default?

I have an simple UIImagePickerController where I hide the camera controls and set the sourceType to the camera. This opens the live camera preview right away but there's about a 50px hight black bar at the bottom of the viewer. Any idea how to get rid of this? ...

MKMapView returns the wrong latitudeDelta and longitudeDelta in regionDidChangeAnimated

I'm attempting to talk to a web service for locations within the zoomed-in or zoomed-out area on an embedded MKMapView. In the regionDidChangeAnimated method of my view controller (this is the method that I use to trap any user gesture on the map), I call the following: NSLog( @"latitude delta = %f", mapView.region.span.latitudeDelta );...

How can I get a debug version of my iPhone app onto my iPhone?

I'm trying to get just ONE copy of my application on my real iPhone to test it. How can I do this without going through the appstore? ...