iphone

how to sync song with song information in iphone

Hello I have to sync song list with Song information means Whenever i play the song and user want to see detail of song by clicking another tab then he/she will see the information But this will not happen as songs are running fine but song info take the default value. so please provide some code or link which help me Thanks Ritesh ...

App is fast on 3GS but slow on 3G

Hi all, I'm new to computer coding and have just finished coding an app and tested it on both 3G and 3GS. On 3GS, it worked as normal as on the simulator. However, when I tried to run it on 3G, the app becomes extremely slow. I'm not sure what's the reason and I hope someone could shed some light on me. Generally, my app has a coupl...

Mobile safari - suppress Unsupported Protocol alert

Hello guys, I'm creating a website for iPhone and i use the native app (cliqcliq Quickpick) to upload photos. I use the script like the following to check if the application is installed. The basic idea is to send user to a custom url, if application is there it is launched, if it is not there the url should be ignored and user is take...

JsonDebgingProblem

i have one issue.. Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘* -[NSCFArray objectForKey:]: unrecognized selector sent to instance 0*c3e6afe0’ stack(29365339.7657656....); please help issue.. ...

Global Variable problem

Hi, I am new in iphone.I use a flag variable to play songs in avAudio player all songs are properly handeled with flag variable.we have two tabs in tab bar , i want that if any song playing then on other tab song info show.If we use that flag variable then i syncronize song info with song.But i can't access the value of flag on song in...

Just-in-time invocation of Facebook login window from UIWebView

I have an app that presents a UIWebView pointing to my own server. I have a Facebook Like button on some pages inside the UIWebView. I have it working now, but the login screen is way too big for the phone screen. I would like to present a nicer login dialog such as the one in the Facebook iPhone API, and then continue back to the web...

How do i add a main menu before accessing a UITableView?

Hi I have built an application that revolves around UITableView, Core Data and XML. Now that the app is almost complete i want to add a main menu before accessing the tableView. The main menu will then allow you to navigate to the table and other functions. What is the easiest way to go about doing this? I'm confused about how to change...

how can I get animation when going to previous view

hi, i have used viewcontroller with multiple view. when i go back to previous, there is no animation i have tried by below lines of code , -(IBAction)goback { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1]; [UIView setAnimationTransition: UIViewAnimationTransitionCurlDown forView:self.view cache:YES]; [sel...

trouble with section headers in UITableView

hi guys , im having a problem with setting my section headers in a uitableview, its probably something really simple i just cant work it out. instead of displaying different headers for different sections it displays the same header for each section help me please :) - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableVie...

Add blank cell at end of UITable

I'm trying to add an additional cell for custom content as the last cell in a tableView, without altering the dictionary that creates the other content of the table. I think the place to add it is in cellForRowAtIndexPath rather than adding one to the numberOfRowsInSection, which just crashes if I do. I get a cellCount from the dictio...

How to preselect a certain section in a newly generated UITableView

Hi, I have a UITableView that I build up programmatically and want to preselect a certain section header at startup. Any hints how I can achieve that? ...

Cannot read values from [NSUserDefaults standardUserDefaults] after synchronize

In the Application Delegate didFinishLaunching method, I am using the following code to build up a new NSDictionary to be used as the new settings bundle for the user: NSNumber *testValue = (NSNumber*)[[NSUserDefaults standardUserDefaults] objectForKey:@"settingsversion"]; if (testValue == nil) { NSNumber *numNewDB = [NSNumber numbe...

Usage of autorelease pools for fetch method

Hi, I'm a little bit confused regarding the autorelease pools when programming for the iPhone. I've read a lot and the oppionions seem to me from "Do-NOT-use" to "No problem to use". My specific problem is, I would like to have a class which encapsulates the SQLite3 Access, so I have for example the following method: -(User*)fetchUser...

Change UITextView text color with animation.

Hi ! Just a simple question. Is it possible to change the text color of UITextView with a animation? [UITextView beginAnimations:nil context:NULL]; [UITextView setAnimationDuration:2.0]; textView.textColor = [UIColor grayColor]; [UITextView commitAnimations]; Cheers! - Martin ...

UISearchDisplayController "shouldReloadTableForSearchString return NO" reloads table

Why does my UISearchDisplayController show "No results" even if the shouldReloadTableForSearchString method returns NO? Shouldn't it just do nothing and stay black? How can I prevent it from doing so? #import "RootViewController.h" @implementation RootViewController #pragma mark Table view methods - (NSInteger)numberOfSectionsInTable...

Change or disable the iPhone rotating animation when orientation changes

How do I change or disable the rotating animation when screen orientation changes from landscape to portrait, or vice versa? ...

iPhone - packaging multiple app in a single app

Hi, I would like to package multiple app in a single app. So donwloading one app and install that in an iPhone will install 3/4 apps. Something like java midlet suits having multiple Midlets in a single jar file. Is it possible by using multiple target or bundle, aggregate target etc.? ...

Detecting Touches in an OpenGL rendered scene

Hey. I was wondering whether there is a way to detect a touch in an OpenGL rendered scene. What I have i a set of images which are being rendered in my main view. Now if the user touches one of these images (or objects) I would like to know which one was touched - similar to the CGRectContainsPoint(frame, [touch locationInView:self.vi...

Backspace not working when implementing shouldChangeCharactersInRange method - iPhone Dev

Problem... I have a string of allowable characters "0123456789." How do I also allow the backspace from the keyboard... when I implement the code from below... the backspace key no longer works... How can I fix this? * (BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *...

List of already used objective-c Prefixes

I'm looking to choose a namespace for a library I'm writing and I'd like to avoid conflicts with other namespaces. Does anyone know of a website that lists all of the class prefixes in use? ...