iphone

Obtain user location from a MKMapView

Is it possible to use the MKMapView's own location manager to return the users current location to pass into a webservice? I have mapView.showsUserLocation=YES; and this does return a valid blue dot at my location, but in the simulator, its Cupertino - which is fine, but when i look at mapView.userLocation.coordinate.latitude, its equa...

UITableViewCells reorder when not visible on screen

I have a problem and lots of difficulty finding a solution, even if I would assume lots of people should have had similar issues. Hopefully someone can help me. I've created a Settings screen for my application using a UITableView. A NSArray is used to configure the controls I intend to display. The array looks like this: [self setCont...

OpenGL ES - huge map, best practice

If I want to render just a huge map, what is the best practice when using OpenGL ES with a mobile device (Android or iPhone based)? What is the best structure to contain all the vertices, normales and texture coordinates? I guess using a interleaved structure may give you some performance benefits caused by memory caching. Ok? Should ...

What is the most efficient way to add a reflection to a UIImageView

I just want the easiest way to make a reflection under a UIImageVies that is easily managable. ...

Cause the iPhone to go into Standby

I am looking to make an app to replace the standby button. The problem, I've looked over the iPhone API very thoroughly and found how to disable standby but not how to cause the iPhone to go into standby. I'm sure there must be a way, after all the iPhone goes into standby after a time anyway. Thanks in advance for any help. ...

Twitpic not working, Posterous is... why?

I was using the Twitpic API from in my iPhone app for a while with no problem, then suddenly it started reporting: invalid username or password. I changed the URL to that of yfrog and they reported: could not find the media. I changed the URL to that of Posterous and it works. I've done some Googling and I can't find any problems wi...

iPhone SDK: How can I test my app on an actual device?

I have built an iPhone app that I need to test on an actual device. How do I get the app onto the device? I have an Apple Developer account. Also, I will need to distribute the binary to some of our testers. How can I get them a copy of the app? Many Thanks. ...

iPHONE: This is not a test user accout please create a new account in the sandbox environment ERROR

Hi, I have created an iphone application with in-app purchase. 5 out of 10 users are reporting the following message when they try to buy something using in-app purchase: This is not a test user accout please create a new account in the sandbox environment. I have tested the in-app purchase and I never got such error. any ...

How do you cause a longer vibration from System sounds default vibration

I want to create a vibration but not of the normal length ...

UIScrollView paging just for horizontal, but not vertical?

Hey SO, I've been messing with the UIScrollView. Essentially I've put 7 views into it that are all taller than the contentSize. I set paging enabled to yes, and it's working great horizontally. An unexpected side effect, however, was that it also has paging enabled vertically. My tall views get stopped in multiples of the height of ...

Problems parsing XML using NSXMLParser

I'm having strange problems parsing (apparently) correct XML code! The xml parsed is: <?xml version="1.0" encoding="UTF-8" ?> <root> <results> <file id="0" name=" Linux Ubuntu.rar 700.64 2" size="700" disp="2"/> <file id="1" name=" [Soft] Sistema operativo Linux. ...

Are there useful videos about Core Data?

I wonder if there are good videos out there that describe Core Data in detail, starting out with the basics? I know nothing about Core Data. Would like to watch a few videos in addition to the hard-to-read apple docs. I'm reading all day now about core data and feel my brain hasn't gained much additional knowledge ;) Please list all yo...

iphone quartz draw border around line

Hello, what's the best way to draw a (black) border around a line in quartz for iphone? I'm drawing lines on streets on map and if the line is yellow (which is a legit use case), it blends in with the street color. One thing I could do is lay my lines over a little thicker black line, but this doesn't sound very efficient. ...

IPHONE - name of an application on /Applications on jailbroken iphones...

Hi, I have an application using in-app purchase. Apparently, if the user has a jailbroken device with Cydia and is using Cydia's AppSync, the user cannot buy any in-app object, because AppSync interferers with the application. The problem is that the error message Apple shows the user do not makes clear where the problem is. I don't ...

Parse data returned from j.mp

Hi, I'm currently writing an iPhone application, that posts a long url to j.mp (bit.ly). It is fully working and posts the long url successfully. But when I want to copy the returned data into an UITextView, I just get some JSON Data. Now my question: How can I parse this data, so that I only have the shortened url? Could anyone help m...

iPhone - Problem with MKMapView instance

Hi, I've got a problem with a MKMapView, which is placed as a full-sized view in a UITabBarController at first position. Before the view will be shown, I add several annotations to the mapView. Everything just works fine. When I change the tab (so that the mapView is out of view) and switch back to the tab with the mapView, all annotat...

iphone os 3.0 doc set

Does any one know the RSS feed for 3.0 iphone sdk doc set ? I cant update the documentation from xcode. ...

How to access a UIActivityIndicatorView in a UITableView's section header view?

Hi everyone, I want to do something pretty simple with my UITableView: I want to add a UIActivityIndicatorView to a section's header view, and make it animate or disappear whenever I want. I had no trouble adding the UIActivityIndicatorView to the header view using tableView:viewForHeaderInSection: - (UIView *)tableView:(UITableView *)...

Can't initialize an NSMutableData with an NSData (which contains a png)

Hello, there is a error in my iPhone app. I use the CameraPicker to make and get a picture and then I give it to my methode sendPhoto, which will send the photo to TweetPhoto. Everything works great until I initialize an NSMutableDate with NSData. Here is the code: - (void)imagePickerController:(UIImagePickerController *)picker didFinis...

iPhone System Processes by CPU Rate (top/ps)

What is the best way to programmatically access the processes sorted by cpu rate on the iPhone (similar to that seen in the *nix top command)? sysctl()? ...