objective-c

How to change the title of the backbaritem in uinavigationcontroller

In my code, i have this line; [self.navigationItem.backBarButtonItem setTitle:@"back"]; but this doesn't change the title of the back button in uinavigationcontroller when the new controller is pushed. So how to change the title of the back button? ...

AudioToolbox framework supported for iPhone 4 Multitasking?

Hello all, i am using audiotoolbox to stream music from a URL on an iphone app. what i want is to enable multitasking using this framework. is their a special way of doing this or which method can i use to make this work. thanks. ...

Adjusting the volume of a playing AVPlayer

The only method for getting a volume change on currently playing AVPlayer items is to follow this process; Offload the currently playing AVPlayerItem's asset Grab the current playback time for that AVPlayerItem Load the asset into a new AVPlayerItem Replace the current AVPlayerItem with the new one Wait for the currentItem to change on...

iphone frame by frame animation memory issues.

I have a frame by frame animation but it is causing my iPad to crash. There are actually a few animations, located in different view controllers, and they work but after a while of switching between them it will crash the app. I think it could be a memory issue that I need to release name, image and array after the animation, but how do ...

Simple Cocoa modal window dialog on Mac OS X

I am porting a plug-in from 32-bit to 64-bit which is actually in C++. Since Carbon is no longer supported on 64-bit, I have to port some code to Cocoa. The only Cocoa help I need is how to create a simple modal window (not a sheet) that has two buttons, OK and Cancel, and gives me a string input from the user. I created a Cocoa nib, but...

Multiple UILocalNotification Management

I am developing an application that, because I can't use a custom time interval to schedule local notifications, has to create N local notifications to simulate a timed schedule. The application does this once for every X objects (let's call them calendar events for now). So a user can have 100 calendar events, each with 20 local notific...

-drawWithFrame:inView: invocation on NSButtonCell subclass

To implement a custom button I've subclassed NSButtonCell and overridden -drawWithFrame:inView: as suggested in Cocoa documentation. Everything's working fine, but why is the method -drawWithFrame:inView: invoked 3 times everytime it needs to draw or redraw the cell? ...

Looping through all the UITextFields in a UITableView

Hi all, I have a UITableView that contains a UITextField in each cell. I can't seem to figure out how to loop through and get each of the UITextFields. Is there any way to do this??? Many thanks, Brett ...

UIToolbar above a Keyboard - iPhone SDK

Hi all, I have seen this question posted several times with no useful answers. I am trying to place a toolbar above my UIKeyboard in my iPhone app, but am having difficulty. I found this example which works GREAT, except that my view is a UITableView instead of the standard [self.view addsubview:...]. Can anyone figure out how to appl...

Is there anyway to play the "sent mail" sound clip that the mail client uses?

I was wondering if there was a way you could play the "sent mail" sound clip in your app without using MFMailComposeViewController. I have a custom view controller for sending messages in my app. is there a way to play the sound when the user sends the message? ...

Programmatically Displaying a UILabel from another class

I'm re-factoring my code and would like to move a whole bunch of UILabels into another class to tidy things up a bit. I'm missing one puzzle piece to be able to do so though (or maybe I'm just tired lol) Anyway here's the simplified code showing my issue. Thanks in advance to anyone who helps :) @interface MyClass : UIView { UILa...

How does iphone apps interact with server?

Hey guys, I am actually a really new programmer who is new to iphone developing and server stuff. So I have a lot of questions to ask. You don't have to answer all the questions but answering as much questions will help me a lot! thx! How does iphone apps interact with server? Is there a particular kind of server i should use to intera...

Is there any way to customize the toolbar in UIImagePicker?

When the image picker is presented and a user takes a picture, the photo is displayed on another view. The two toolbar items are "retake" and "use." Is there any way to change "use" to "upload"? ...

NSString *string = @"someString" vs NSString *string = [[NSString alloc] initWithFormat@"%@", string]

If I have a method - (void) myMethod:(NSString *)string { [Object anothermethodWithString:string]; } and I call [Object myMethod:@"this is a string with no alloc statement"] Do I need to do something like - (void) myMethod:(NSString *)string { NSString *string2 = [[NSString alloc] initWithFormat:@"%@", string]; [Object...

trouble getting multiple plot spaces to work in core-plot

I apologize for cross-posting to this and to the discussion list, but more eyes are better. I'm trying to create a discontinuous plot using the method described here: http://groups.google.com/group/coreplot-discuss/browse_thread/thread/..., and I'm having trouble getting the plots to render. I have one continuous plot that is associa...

Seeing the value of a synthesized property in the Xcode debugger when there is no backing variable.

I just recently began using synthesized instance variables in my iPhone projects. The problem is, I can't see the synthesized ivars in the debugger. Is there any way to view the properties of an object in the debugger when it's not using the explicitly declared instance variables? I need to clarify the second question. I'm not asking ...

iPhone: Load Queue on Startup

I've not found a answer to this question anywhere, but this seems like a typical problem: I would like to send some POST-Requests (with ASIHTTPRequest, what I already do), but if something goes wrong, ther user can decide to "Try Later", that means, the task should be put on a queue and this queue should be read next time the applicatio...

how to get a web page displayed on my uiwebview in objective -c

I am trying to display a web page in UIWebView so that when i click a button the webpage should be displayed in uiWebview.How could this be possible Can anybody help in solving this or give me some hint ...

Could Not able to position the UITableView ?

- (void)loadView { SettingsTitleBar=[[UINavigationController alloc] initWithRootViewController: self]; searchBar =[ [UISearchBar alloc] initWithFrame:CGRectMake(0, 44, 320, 40)]; searchBar.placeholder = @"Type your City Name"; searchBar.delegate = self; searchBar.autocorrectionType = UITextAutocorrectionTypeN...

(iPhone) Reading from a web file - NSMutableArray

Right now I have an NSArray whose items are just written in the implementation file. I'd like to know how to make it so I can store all the items on a web (text) file. Example: http://mysite.com/files/objects.txt On that document: Object 0 goes here Object 1 goes here Object 2 goes here Object 3 goes here etc. All separated by ...