cocoa-touch

How to programmatically send SMS on the iPhone?

Does anybody know if it's possible, and how, to programmatically send a SMS from the iPhone, with the official SDK / Cocoa Touch? ...

Can I write native iPhone apps using Python

Using PyObjC, you can use Python to write Cocoa applications for OS X. Can I write native iPhone apps using Python and if so, how? ...

How do I size a UITextView to it's content?

Is there a good way to adjust the size of a UITextView to conform to it's content? Say for instance I have a UITextView that contains one line of text: "Hello world" I then add another line of text: "Goodbye world" Is there a good way in Cocoa Touch to get the rect that will hold all of the lines in the text view so that I can adjust...

Can anyone recommend a complete ObjC/Cocoa or Cocoa-Touch tutorial?

I went though "Become an Xcoder", which was very useful, but it ended very abruptly, just as I started to understand about ObjC's syntax, and about Inlets/Outlets and such in Interface Builder. I've looked around, and found a bunch of tutorials that cover writing an application, but these either seem to be "Open Interface Builder, add a...

How do I make a UIDatePicker display specific dates?

My application has a need to let the user choose a date from a list of dates conforming to a certain pattern. For instance, they may need to choose a monday from a list Monday's for a month. Is there a way to get a UIDatePicker to limit date choices to a certain subset or should I just use a UIPickerView? ...

Do I need to release xib resources?

If I have something like a UILabel linked to a xib file, do I need to release it on dealloc of my view? The reason I ask is because I don't alloc it, which makes me think I don't need to release it either? eg (in the header): IBOutlet UILabel *lblExample; in the implementation: .... [lblExample setText:@"whatever"]; .... -(void)deal...

What's the best way to do a mapping application for the iPhone.

So I'm looking at writing an iPhone application that shows things on a map. What frameworks/methodologies are out there for doing this? Searching around on Google, I could only find this one: http://code.google.com/p/iphone-google-maps-component/ Which according to the issues list is slow, and stops working after a while. Does anyone k...

"Cocoa Touch Application" Template from XCode 3.1.1

Just installed the latest SDK for iPhone 2.1. When I go to File -> New Project in XCode, under the iPhone OS Application selection, I don't see a template icon for "Cocoa Touch Application". Am I missing something? Anything else I need to download other than the iPhone SDK? If not, how do I add it to the "iPhone OS Application" templates...

How can I take a photo with my iPhone app?

I'm writing an iPhone app with Cocoa in xcode. I can't find any tutorials or sample code that shows how to take photos with the built in camera. How do I do this? Where can I find good info? Thanks! ...

Tax on iPhone developer payments

Anybody know how Apple deals with taxes when they pay developers their 70%? Do they take out taxes before paying you your share or is it simply up to the developer to state the amount on their taxes? ...

presentModalViewController modal dialog does not cover Tab Bars!

I have a situation where a modal dialog does not cover the Tab Bars of the UITabBarController derived view. Has anyone experienced a similar issue? This only happens when a second modal dialog is being displayed after the first one is dismissed. ...

How can I upload a photo to a server with the iPhone?

I'm writing an iPhone app that takes a photo and then uploads it to a server. How do I upload a photo to a server with Cocoa in Xcode? I suppose I use NSUrl somewhere. Thanks! ...

Variable UITableCellView height with subview

Hi everyone, I want to create a UITableView with varying row heights, and I'm trying to accomplish this by creating UILabels inside the UITableViewCells. Here's my code so far: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"EntryCell"; UITabl...

How do I wrap text in a UITableViewCell without a custom cell

This is on iPhone 0S 2.0. Answers for 2.1 are fine too, though I am unaware of any differences regarding tables. It feels like it should be possible to get text to wrap without creating a custom cell, since a UITableViewCell contains a UILabel by default. I know I can make it work if I create a custom cell, but that's not what I'm tryin...

What are some good resources for learning Objective-C?

I've been using Objective-C for about 6 months, and have a good grasp on the basic concepts. What are some resources (websites, PDFs, Books, Blogs, etc) to advance past this level? ...

iphone viewWillAppear not firing

I've read numerous posts about people having problems with viewWillAppear when you do not create your view heirarchy JUST right. My problem is I can't figure out what that means. If I create a RootViewController and call addSubView on that controller, I would expect the added view(s) to be wired up for viewWillAppear events. Does anyo...

Using Interface Builder for UITableView's

I'm very early in the iPhone development learning process. I'm trying to get my head around various pieces. Right now I've just taken the basic NavigationController template and I'm trying to create a simple grouped table view with a couple of text fields. What I can't seem to do is to get Interface Builder to allow me to drop a UITab...

How do I tell if a UIView is visible and on screen?

If I have a UIView (or UIView subclass) that is visible, how can I tell if it's currently being shown on the screen (as opposed to, for example, being in a section of a scroll view that is currently off-screen)? To maybe give you a better idea of what I mean, UITableView has a couple of methods for determining the set of currently visib...

How to display text using Quartz on the iPhone?

I've been trying to display text using a Quartz context, but no matter what I've tried I simply haven't had luck getting the text to display (I'm able to display all sorts of other Quartz objects though). Anybody knows what I might be doing wrong? example: -(void)drawRect:(CGRect)rect { // Drawing code CGContextRef context = UI...

How to get the RGB values for a pixel on an image on the iphone

I am writing an iPhone application and need to essentially implement something equivalent to the 'eyedropper' tool in photoshop, where you can touch a point on the image and capture the RGB values for the pixel in question to determine and match its color. Getting the UIImage is the easy part, but is there a way to convert the UIImage d...