iphone

Play local notification default sound when displaying UIAlertView?

I'm writing a reminders app for iPhone that displays reminders using local notifications. If a reminder goes off while the application is running, the local notification isn't displayed. Instead, the didReceiveLocalNotification method is called in my app delegate, and I mimic the local notification dialog by displaying a UIAlertView wit...

how to control the volume of ipad without MPvolumeView?

In a movie player, i can use mpVolumeView to control the volume.Is there any other way to control it ? ...

Reduce the size of PDF file generated with Quartz2D

Hello, I'm looking for a way to reduce PDF size that I generate with Quartz. I'm drawing images with CGContextDrawImage in a CGPDFContext. What I'm afraid of is that the images are saved as Bitmap and not JPEG. Is there a way to check for that and a way to control that when writing the PDF? I also tried reducing downscaling the image b...

Build iPhone App for multiple devices and versions

Im trying to upgrade my iPhone app from 3.0 to 4.0 Some of the API are deprecated in 4.0, if i use the new API, it might not work on 3.0 right? Therefore i need to have an old API and New API What is the best way to code for 3.0 and 4.0 for all the pro developers out there? I know i can check for model and systemVersion from UIDevice....

MPMoviePlayer button overlay not responding in iPhone SDK4.0

Do you know how to get a working button overlayed on MPMoviePlayerController. This was working in SDK 3.x. The button displays but is not responding to touches. ...

How to select rows while in edit mode?

I have a UITableView that is editable. I am commiting changes via: - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath While in edit mode, I would like the user to be able to select a row, which will push a new view. I am not sure how to do ...

Can i using a custom slider to control volume?

As i know,MPVolumeView can add to my app for changing volume.But now i want to control volume with a custom slider. Maybe i can fit it myself if MPVolume was a subclass of uislider,indeed,it is a subclass of uiview. Ask for advices to realize my idea,thank you very much. ...

Compiling with LLVM/Clang causes crash, not GCC 4.2

I'm working on an iPhone app, and I'm having some compiler trouble. Here's the low-down: I am compiling using Xcode 3.2.3, targeting iOS 4.0: my device is a 2nd Gen. iPod touch running iOS 4.0. Compiling with GCC 4.2: works on both the simulator and the device Compiling with LLVM compiler 1.5: works on simulator, but not on device. Com...

how long does session storage on iPhone/iPad last?

If session storage lasts until the browser is exited, and iPhone/iPad does not exit mobile Safari, then how is sessionStorage handled? It would logically seem to be equivalent to localStorage, but it seems like there would have been a workaround or exception for this. Does anyone know how this is handled? Thanks! ...

iphone how to specify the Class data type have to adopt to a protocol

Hi all, In my application, I need to return the "Class" as a return type like: Application.m: + (Class)getParserClass { return [NCCurrencyParser class]; } NCCurrencyParser.m: @interface NCCurrencyParser NSObject <NCParser> @protocol NCParser +(NSNumber *)parserNumber:(NSNumber *)number; in the caller method: Class parserClas...

iphone application design

What would I put into my root controller in an application that will have multiple tabs, where is tab is a navigation controller? Do I create derived classes of the navigation controller, where each one manages its own view controllers and the root manages the tabbar and list of navigation controllers? ...

iPhone Application - combination of UINavigationController and UITabBarController

Hi I want to make the login app with the complicated views. Requirement flows as below: Login Page --> Menu Page --> Detail Page with Tab Control. --> Navigation Page Here the 'Detail Page' is again a combination of two views. Navigation View and Tab View. i.e. 'Detail Page' will have a Navigation Control (Navigation Bar) on top ...

How to use UIKeyboardWillShowNotification

I want to create a ChatView exactly like iPhone's texting app (Messages). I'm doing it programmatically and am trying to move the textView up with the keyboard. I want to do this in a function that gets called by UIKeyboardWillShowNotification. Could you help me debug this error? In ChatViewController.m, I set a listener for UIKeyboardW...

Playing a tone from a custom memory buffer and not from a file on iPhone

I want to develop an application for the iPhone that creates a custom memory buffer and plays a pure tone of a sine wave (like beep beeep beeeep). I saw this code in the forum: http://www.omnigroup.com/mailman/archive/macosx-dev/2000-May/014070.html and I find it very close to what I'm looking for, but it is for the Mac, and that cau...

UIImage - implementing an auto levels algorithm

Hello, I'd like to implement an "auto levels" option for a UIImage that I am displaying in my iPhone app. Before I try to implement it myself, I was wondering if there are any image processing methods in the APIs I should be using, for histograms, etc. Or should I just grab the underlying CGImage and process it? (I am new to iPhone dev....

How to Pass value to webview from viewcontroller

I have UIViewController from which i have to pass nWordID value to Webview. This webview push another webview on which i have to use nWordID (use it on second webview). didselect method looks like: nWordID = [[rowData objectForKey:@"WordID"] intValue]; [PDF_Viewer passwordID:nWordID]; // Try but not work. PDF_Viewer is web view.pass...

Pass value from Objective C to Javascript using NimbleKit

Hi, can anyone give me an idea about how to pass parameter from objective c to javascript using NimbleKit?? Thanks Rony ...

why the memory is still holding when I do removefromsuperview?

I'm currently working on a ipad project and found this. so here is my structure i subclassed uiviewcontroller as customizedVC,like this @protocol customizedVCDelegate -(void)viewclosed:(UIView *)view oldviewcontroller:(UIViewController *)oldvc newvcname:(UIViewController *)newvc; @end @interface customizedVC : UIViewController { ...

Error: Argument list too long: recursive header expansion failed at /Applications/iWork '09/Pages.app/.../Contents/Resources

HI, Can any one help me solving this error... When I am building my project it is showing the following error this is the first time im facing this error... "Argument list too long: recursive header expansion failed at /Applications/iWork '09/Pages.app/Contents/Resources/Templates/Modern Business Cards.template/Contents/Resources." ~Ra...

iPhone preferences (NSUserDefaults) not working, keys always return nil!

I made some preferences in my Settings.bundle that show up fine in the Settings app. However my settings always return nil when I read them back. I know I need to set a default value on first startup. But even after that and going to the settings menu (which should also set the default values) - when I read them back I always get nil...