iphone

How to change UIPickerView height

Is it possible to change the height of UIPickerView? Some applications seem to have shorter PickerViews but setting a smaller frame doesn't seem to work and the frame is locked in Interface Builder. ...

The iPhone and a PC?

Is it possible to create iPhone apps using a PC? I'm running windows vista and I want to learn objective-c, what better way can you be motivated then the potential to create something that someone, somewhere might use. Edit: Are there any hacks that allow would allow me to make the apps? ...

Displaying UITableViewCell's side by side, on the same row (As in Contacts -> Info)

If one navigates to the iPhone's Phone app, then goes to Contacts -> Info (on any contact).. you will see at the bottom of the contact there are two adjacent UITableViewCells, on the same row. In this particular case, they are "Text Message" and "Add to Favorites" How is this layout achieved? If there's any examples out there, that woul...

Cocoa strategy for pointer/memory management

I see a lot of code, particularly in Apple example code, that resembles the following: EditingViewController *controller = [[EditingViewController alloc] initWithNibName:@"EditingView" bundle:nil]; self.editingViewController = controller; [controller release]; Is there any reason in particular that the approach above proves...

right align text in UIPickerView

How can I right align text in a UIPickerView? I tried to make custom UILabels for the row views, but for some reason, nothing is showing up, right-aligned or otherwise. Here's what I wrote: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UILab...

UITabBar app and button that plays music in a tab

I have an instance of AVAudioPlayer running inside one of my tabs. It is activated through an IBAction. I would like the music to stop when a user clicks on another tab. How would I go about doing this? I've tried theAudio.stop; in viewDidLoad, but that didn't work. ...

My iphone application crashes

I made an application that should run constant until I stop it. What it basically does is getting some data from connected another device and send that data to the server periodically using NSURLConnection, and read data from the server periodically and visualize that data as a graph using NSXMLParser. I ran the instrument to check all...

How to set UITableView to Grouped?

In an iPhone navigation based app, I want to add a second tableview but have its design available in IB. I've added a new empty XIB and dragged a UITableView onto it. I want to setup the layout through IB. I've created a controller for this tableview and set the File's Owner class in IB to this controller. I linked the tableview to F...

iPhone Bug App bug Question and challenge..

Ok so I've got a really annoying bug in my app. It's driving me crazy and I'm sure it's beyond my skill level as I am learning as I go. Here is the initial rundown of the bug: http://stackoverflow.com/questions/573837/a-shot-in-the-dark-application-bug However I have found a way to consistently reproduce the bug (only on the device not...

What is state of iPhone SDK NDA?

There are lots of iPhone SDK tutorials on the web now. It's a little confusing to come across a tutorial/post where someone is stating they can't do this or that because of the NDA. Yet, the NDA has been lifted. What exactly are the restrictions in regards to posting code and talking about the SDK? Here's one example: The book 'iPhon...

iPhone: Flashing Colours

I am trying to get the iPhone background Color to change color every X number of seconds. How can I do this? I've been trying a UIAnimation but can only get it to change to the very last color in a list. Thanks alot! ...

iPhone NavigationController - same view pushed, different layouts received

I have a tabbed application with each tab having a navigation controller. I use helper code to push a view/controller pair onto the navigation stack yet when I call this same code from two different places I get (suprizingly) different results. In one case the view renders lower than in the other case, seemingly lower by a navigation bar...

Do you need a permit in California to sell on the AppStore?

I'm applying for the iPhone developer program, and it mentioned they may need business documents, possibly including a seller's permit. I have all of the other documents in order, but I was looking on CalGOLD and it says "All businesses selling or leasing tangible property must obtain a Seller's Permit." Does software count as tangible ...

Convert NSDate to NSString

How do I convert an NSDate to an NSString so that only the year in @"yyyy" format is output to the string? ...

What's the best layout for a scrollable iPhone "detail view" with variable content?

I'm building a navigation controller based iPhone application and am curious how to go about building the detail view for my application. The part that's complicating my endeavor is: What UI elements/hierarchy should I employ to create a variable-height yet scrollable detail view? A great example of my goal is an arrangement like the m...

Create a Split View ViewController

Fairly new to iPhone/Cocoa development, so I'm having difficulty adjusting. I want to create a ViewController that has two separate subViews. Kind of how the TabViewController/NavigationController is set up, but I want to be able to control what's in the other portion as well (not to mention sizing, etc.). Either orientation is fine (to...

My Quartz drawing on iPHone is clipped after rotation!

I'm drawing three rectangles, one of which falls off the end of the view, (i.e. the drawing is bigger than the current view bounds) so you don't see the right edge. This is good, but when the view is rotated, the right edge is still clipped, even though there's plenty of room to draw it. How can I get the view to redraw the full rectan...

Layout options in UITableView (iPhone)? Or extend UIScrollView?

Hi, I'm new to Objective-C and iPhone coding and was hoping someone could help me. Basically I want a scrollable table that displays a name and a quantity of that item. For example: Apples.........2 Oranges......4 Bananas......5 I want the name to be left-justified and the number to be right-justified. Is there any way to do this w...

modifying plist file

i want to modify entries in custom plist file programmatically. can anybosy suggest me a way to do that? i have tried modifying values of keys but file is not getting saved.. ...

Tab bar controller inside a navigation controller, or sharing a navigation root view

I'm trying to implement a UI structured like in the Tweetie app, which behaves as so: the top-level view controller seems to be a navigation controller, whose root view is an "Accounts" table view. If you click on any account, it goes to the second level, which has a tab bar across the bottom. Each tab item shows a different list and l...