iphone

Iphone custom Navigation Bar Button with SystemButtonImage

Hey guys, I'm working with custom navigationBarButtons so I can give them a different tint-color thant the navigation Bar. But I can't see a way to get them to show a systemButton (Like the symbol for reloading). I guess these are private. Does anyone of you have matching symbols/images I can use? ...

Creating csv files in ObjC

Hi All, Is it possible or any library available for creating .csv file in ObjC ? Thanks ...

Refresh my mapView

Hello community, i have a mapView with pins on it, and the following code for CLLocation and getDistance between me and another points on the map: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{ Koordinate *kunde = [[Koordina...

How do I disable a textfield?

Hey! I have a textfield which displays a result but I don't want it to be accessible by the user as in I don't want the keyboard to come up. How would I go about that in text? ...

iPhone OS current usage statistics (esp. 2.x vs 3.x)

I am trying to find out how many of the active iPhone and iPod touch users have at least 3.0 OS installed. I need to know if the percentage running 2.x is still considerable or not really. I tried looking into AdMob stats, and other OS usage stats sites, but I can't get to see iPhone 2.x vs iPhone 3.x ...

Escaping characters in Objective C on iPhone

I'm trying to pass the following string: NSString* jsString = [NSString stringWithFormat:@"myFunc(\"%@\");", myParameter]; from Objective C to JavaScript using the stringByEvaluatingJavaScriptFromString, where myParameter is a string value. How can I ensure that the myParameter string doesn't contain any JS-unsafe characters without b...

UIViewController does not auto rotate.

As the title says. My UIViewController will not rotate no matter what. When it loads shouldAutorotateToInterfaceOrientation is being called but after that it doesnt. UPDATE 1: It's a really really wierd problem. At least for me. And i ll try to explain everything. It's a navigation based app. Every controller has - (BOOL)shouldAutoro...

Is it possible to add new app variables on iPhone, similar to ${EXECUTABLE_NAME}?

The title says it all really! I'd like to reference my own variables in my info.plist & build settings files. Is this possible? Any ideas? Cheers! Nick. ...

What to do when iphone losing 3G channles durin audio streaming

Hi, I am doing audio streaming now in my project, so suppose when iphone loose 3G signal or internet goes down then i think it give audio queue ind error. Is it possible to do something so it would save last packet when signal or internet lost and it would be start from previous state when it was paused?. IS it possible to do that?. T...

How to develop addons (hacks) for IPhone?

Greetings everyone.. I wanna develop an addon (basically a hack) for IPhone native phone app. My entire idea is to provide a "delete" button on navigation bar of the phone app. When user clicks on that delete button I wanna allow to delete the call records from the mobile app itself (where APPLE does not allow this). This kind of hack (...

Internationalization of iPhone Applications

Are there any settings in cocoa touch so that we can select different languages in an application? i.e, in our application if we select swedish, then the swedish language must be selected and the input data must be displayed in swedish.. thank you .. ...

NSInvalidArgumentException: Illegal attempt to establish a relationship between objects in different contexts

I have an app based on the CoreDataBooks example that uses an addingManagedObjectContext to add an Ingredient to a Cocktail in order to undo the entire add. The CocktailsDetailViewController in turn calls a BrandPickerViewController to (optionally) set a brand name for a given ingredient. Cocktail, Ingredient and Brand are all NSManagedO...

removing Views from SubView

Hi, I have a App that uses the In App feature. -(void) completeTransaction: (skPaymenttransaction *)transaction{ } When the above method gets called i want to remove all subviews and go back to my main menu window (the first view in my App). Can anyone suggest to cleanest and best way to do this? Cheers ...

Convert std::basic_string to NSString in Objective-C / Cocoa

How do I convert a std::basic_string to a NSString ? ...

GameKit bluetooth help

Hi, I'm trying to understand the basic steps required for a game I'm trying to make using GameKit for bluetooth connections. I only have 1 device, so I can't test out my ideas very easily - therefore, I'd really appreciate any help you could give. The game involves a maximum of 2 players over bluetooth via GameKit and the only data to...

How to enable user to click the View to hide the kb on iPhone?

I find that the View do not have a touch inside or similar event. So, I make a button on top on the view, and set it Alpha to 0, but after I set to Alpha 0, it cannot touch anymore. Any ideas on this? ...

MKMapView userlocation difference

Hello guys! Declaration;) MKMapView mapView; I can't found the difference between mapView.userLocation.location.coordinate and mapView.userLocation.coordinate. Is there any? ...

UIScrollView map with pins that stay at a fixed size?

Hi, In my app, I have a ScrollView that shows a map(just a jpeg). On top of the ScrollView, I added some pins(UIImageView) So far so good. But when I zoom in, the pins also get larger. I would like the pins to stay at a fixed size, just like the pins on the google map application on the iPhone. How do I solve this? Thanks! ...

How can i determine if iphones CoreLocation is using satellites or cell tower triangulation to find the current location?

I'm using CoreLocation to find a users current location and display it on a map. I want to show an icon with an antenna when the location is established using satellites and a icon with towers when it uses tower cell triangulation. In my test app i set the desired accuracy to be kCLLocationAccuracyNearestTenMeters if using tower cell tri...

Communicating between two webviews with Javascript

In an application that has multiple webviews, is there any way to have the JavaScript in two separate webviews communicate with each other directly? I would really like to use JavaScript in one webview to control the contents of the other webview, but my bet is that each environment is completely isolated and that communication has to be...