iphone

How to change the name of the application without having to rewrite the code?

I am looking to change the name of the application, but dont want to rewrite the code. Can anyone help me with this problem.... Thanx in advance ...

How to programatically detect earpiece in iphone?

I'm currently working on a project that involves playing music from the iphone music library within the app inside. I'm using MPMediaPickerController to allow the user to select their music and play it using the iPod music player within the iPhone. However, i ran into problem when the user insert his earpiece and removes it. The music w...

How to use anyother map like google maps in UIWebView in iphone?

I have done google map in UIWebView and it works perfectly with routing stuff and all. But now i want to load some other map into the WebView and get all the features that i get from google maps. How can i do it? For eg: I want to load this one to the UIWebView. http://stage.discoveritalia.it/conbipel/ .This is an italian map. I want to...

send mail in background in iPhone .

Hello, I want to send Email in the background of the application. I dont want to show the MailComposer Dialog box to add all the detail. So How Can I do so ? Thanks . ...

Setting a boolean property in Info.plist from a User Defined Setting

It's simple to set a property in an Info.plist file from a user defined setting, you just use ${YOUR_SETTING_NAME} as the value. However, is it possible to do this for a bolean property? The structure in the plist file for a boolean is: <key>NSAppleScriptEnabled</key> <false/> It's not clear how to use a user defined setting here. ...

I want to scroll to a row in a table view, select the cell then deselect it, but its being deselected before i see it

im using code as below [sampleListTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES]; [sampleListTableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle]; [sampleListTableView deselectRowAtIndexPath:indexPath animated:YES]; the behav...

disable uitabbar

how can i disable uitabbarcontroller? I want to disable uitabbar and enable it after clicking a button. ...

What does the touch/untouch do in xcode?

in xcode if we rightclick on a class file or a xib we see two names in the list touch and untouch what does they do? does someone knows about it? ...

MapKit mercator projection

MapKit use mercator projection, how i can convert latitude to Y screen coordinate? Update: Thanks. i use it CLLocationCoordinate2D leftTopBoxCoordinate; leftTopBoxCoordinate.longitude=-180+cacheRegion.minX*boxSize; leftTopBoxCoordinate.latitude=85-cacheRegion.minY*boxSize; CGPoint leftTopPoint = [map convertCoordinate:leftTopBoxCoordin...

iphone NSDate NSDateFormatter to a ceratin format

Hello Everybody, i want to convert my NSDate to a certain format which is: "Wednesday, December, 2, 2009" does anybody know what is the corresponding format string to that date example? appreciate your help! ...

Colorize UINavigationBar iPhone SDK

I colorized orange my Navigation bar with: navigationController.navigationBar.tintColor = [UIColor colorWithRed:0.88 green:0.52 blue:0.27 alpha:1]; Everything works ok, every button is as orange as the bar, but when ic cames to a custom right item menu, it shows it blue. This is a screenshot: http://img146.imageshack.us/img146/5605/sch...

UIProgressbar in Cococa Touch

Hi all, I want to display an UIProgressbar depending on the amount of data downloaded from the server. One way I implemented is I made a NSURLConnection and set the delegate. The - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response gave me the expectedContentLengh And in the - (void)connecti...

MapKit grid bind

I need to draw gird above mapkit view, and I want to bind grid to view. I have class Grid, that have array or grid elements. //Cache class -(MapCacheRegion)regionFrom:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to level:(int)level { MapCacheRegion ret; float coef = 1; if (level>0) { coef = (baseBoxSize/(...

Getting city and country from NSTimeZone

I'd like to (at least) get the name of the country for a time zone. This is not provided by any of the potential methods: name, localizedName:locale:, description I notice that the built in iPhone clock App has access to this information, as it describes London as "London, England". Thanks. ...

Duplicate a table row with UITableViewCellEditingStyleInsert?

I have an application based on the Core Data Books example, and I'm coming to the conclusion that I need to give the user the ability to duplicate a row in the table - a set of data - and then let them edit this data, rather than always have them create a new record from scratch. I was considering using the UITableViewCellEditingStyleIn...

Memory warning after using the UIImagePicker once

Hi, I've referred to this very good reference: http://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-more but I'm having some very serious issues. After I take a photo, I receive a memory warning. This is for the first photo I take, not the second or third. I was wondering if it's because I've got a coupl...

UISegmentedControl without rounded corner?

Is there a way of get rid of UISegmentedControl's rounded corners or it is the default behavior? ...

jQuery iPhone Style Checkbox Events

I'm using the jQuery package located at http://awardwinningfjords.com/2009/06/16/iphone-style-checkboxes.html to convert my existing checkboxes to iPhone style checkboxes. The problem I'm having is that,after applying the jQuery/iPhone styles, my checkboxes' onclick events do not fire when the checkbox status changes. I need to be able t...

c and objective-c variables

Hi all, Let me see if I can articulate what I'm trying to do... I'll distill it to the core issue. I have an objective-c program and a c callback function. The context is I am using cocos2d and chipmunk physics with the iphone sdk. What I am trying to do is update "score" upon a collision between a bullet and a monster. Everything works...

EXC BAD ACCESS problem

I'm stuck with a problem in emulator. The emulator occasionally stops with Program received signal: "EXC_BAD_ACCESS" . as console output. No further info provided. Is there a chance to come closer to the problem? Kind regards ...