iphone

iPhone 4 640x960

Possible Duplicate: How to differentiate between iphone4 and iphone 3 Well, I know all the @2x stuff and already read the other stackoverflow threads and apple reference regarding the retina display and high res support to no avail. I'm loading an image from a remote server which supports a resolution request parameter. For ...

Will the "Retina Display" affects developers?

Hey, As an iPhone apps developer, should I take some steps (especially for graphics) to make them look correctly on iPhone 4 "Retina Display" or there is no such an issue? Thanks for help and time. ...

Check if user has a song from iTunes in his library

Hi, I am building an iPhone app for music album released on iTunes, client requested that if user purchased the album, the app should allow to play these songs in the app while playing games. I need to find a way how to quicly check if the song is available in the iPod library. I've heard that every song from iTunes has some unique ID b...

Switching multiple views using a delegate

I'm developing an iPhone app that, amongst other things, allows the user to sign up, log in and logout of a remote web server. For this piece of app functionality I have 3 view controllers defined. SignupViewController LoginViewController LogoutViewController and each has a respective xib file. I want to be able to switch between v...

PDF file getting stripped from iPhone MFMailComposeViewController call

My PDF file appears in both UIWebView and the mail on screen on iphone as an attachment. When I send it to my email (using two different email carriers) it gets stripped out-no file attachment. I can send pdfs to these email accounts on my iphone and forward them ok so I don't think its my email provider but iOS that is stripping the ...

how to connect to remote database from iPhone application?

I want to connect to a mySQL database from my iPhone application. How should I do this? ...

Mac/iPhone - NSString - comparing multibyte character and wide character strings

I'm using NSString that is a combination of "japanese" and "english" characters. All are two byte (multi byte) characters. From a webservice I'm receiving a string that is also a combination of "japanese" and "english" characters, but as far as I know english characters in that string are one byte characters. I want to compare my string ...

Which is faster when reading large amounts of data: XML or SQLite

Hey, I will be developing a dictionary app for both Android and iPhone. The data will be embedded within the app, and it consists out of approximately 100000 words, with genus and plural form. Is it better to use a SQLite database or can I just stick to XML? Somehow SQLite sounds more efficient, but I thought let's just ask. Thanks! ...

Duplicate Symbol XCode duplicate library for same library?

Do you have any idea? Why XCode compilation give this result? ld: duplicate symbol _kJSONDeserializerErrorDomain in /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o) and /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o) ...

iPhone view shows wrong orientation

I'm wrestling with this problem. I need a portrait view and a landscape view for my App. Now when I create 2 buttons that show me a portrait view and a landscape view (forced by shouldAutorotateToInterfaceOrientation) they show up just fine. But when I call the views from within the result code of an imagepicker, the portraitview works j...

iPhone - Playing badformat 3gp file using MPMoviePlayerController is not giving error

I'm using MPMoviePlayerController to play few videos. But unfortunately, one of the video whose extention is 3gp is in bad format. On click of a button, the video is played and using some calculation, different videos are selected. When the badly formatted video is selected its displaying a message "The movie format is not supported" whi...

how can i use mailComposer in iPad as well as iPhone?

Hi!I have implemented mail Composer for iPhone and it's working Fine i want to use that mail composer in iPad also so what should i change or please Guide me how can i implement Mail composer in iPad?if possible then please give me a sample code also for that.Thanks in Advance.. ...

Using CAGradientLayer as backround while also drawing in context with drawRect:

Hi all, I'm writing an app that plots some data into a simple graph and sometimes want to draw out the scale in the background. To do this I have a UIView subclass which acts as the graph background and simply use the drawRect: method to draw the scale (data elements will get added as subviews to this view, since I want the user to be a...

bluetooth notification when turned on/off.

Hi All, Is there any way i can get a notification when bluetooth is turned on/off. This is for a personal project not targeted for AppStore. Are there any C/Mac API's for the same? ...

Mixing faces of two persons

I have two images i want to split each image into 3 parts .if i click on first image first part for eg forehead then secong image first part i.e forehead will come by replacing first part and remaining two parts of the first image should be unalerted likewise all three parts should change while clicking that part how can i acheive this ...

Encoding images to video with ffmpeg

Hi. I am trying to encode series of images to one video file. I am using code from api-example.c, its works, but it gives me weird green colors in video. I know, I need to convert my RGB images to YUV, I found some solution, but its doesn't works, the colors is not green but very strange, so thats the code: // Register all formats a...

How to use CTTypesetterSuggestClusterBreak in CoreText + objective C

Hi all, I am having trouble in using CTTypesetterSuggestClusterBreak function of CTTypeSetterRef class. I want to use this method to get closest word boundry near an index. I am having difficult in the implementationof this method, i.e how and where this method must be used. I have been banging my head over this but with no success yet....

Why would XCode keep trying to install an ad hoc profile when I set iPhone developer Code signing identity in the build options?

I want to run my iPhone app in debug mode on my device. I have a valid certificate and provisioning profiles for developer and debug. I also have my code signing identity set to "iPhone Developer" in my project preferences. However when I try to install my app, it asks me if I want to install the ad hoc distribution profile. This is ...

Problem with Thread and NSTimer

Hi I have a problem in my code. I want to launch the thread but when it is launched they can't start a NSTimer istruction. Can you help me? -(void)detectionMove:(NSTimer*)timer{ int indexArray = [[[timer userInfo] objectForKey:@"arrayIndex"] intValue]; // do something } -(void)callDectectionMove:(NSNumber*)arrayIndex{ ...

Sample code for insert and delete row iphone

Is there any sample code provides apple for insert and delete rows in a UITableView iphone ? ...