cocoa-touch

Accessing calendar entries on the iPhone/iPod touch

Hello, is it possible to access calendar entries on the iPhone/iPod touch, i.e. reading, creating, changing, deleting appointments? I searched the iPhone SDK documentation but didn't find anything. Perhaps I missed something. Thanks. Best regards, Thomas ...

How can I connect iPhone and web service and get XML data?

Hi, I know how to connect to web server using an iPhone but now I have to connect the iPhone to a web service. I don't know how to do it and there is no demo or class available online. Does anyone have any ideas? Thanks ...

Double UIView Navigation Bars

I made a UIView using Interface Builder with a top bar that has Cancel and Save buttons. But when the view is displayed in the simulator it has an extra Navigation bar below the one that I've designed on purpose. The extra bar has no buttons on it. Anyone has a clue where I can look to get rid of the extra nav bar? Update: While experim...

How secure are the app settings on the iPhone?

It appears that each app has access to its own config settings, which could be kept after app be shutdown. I am wondering whether one app's config setting could be accessed from other app. Should I save sensitive data like password to the app config? Is there some better way? ...

Multiple labels in Navigation bar

I would like to create a view similar to the "Now Playing" page on the iPhone and have 3 lines of text in the Navigation bar. The only way I could find to do this was: UINavigationBar *bar = [self.navigationController navigationBar]; label = [[UILabel alloc] initWithFrame:CGRectMake(60, 2, 200, 14)]; label.tag = SONG_TAG; label.back...

How to check a value type?

How do I check the type of a value on runtime? I'd like to find out where I'm creating doubles. ...

Interface Builder for iPhone tutorial

Anyone know of some tutorial material for how to use Interface Builder for iPhone development? I can find sample projects and stuff and that's extremely helpful, but they do not reveal how things where setup in Interface Builder. ...

How come iPhone Interface Builder doesn't let me set the X,Y coordinates of a top-level UIView?

How come the iPhone Interface Builder doesn't let me set the X,Y coordinates of a top-level UIView? (Meaning, a view whose direct parent is a UIViewController.) The X and Y boxes on the View Size tab are grayed out. I can change the X,Y values in code at runtime, so why not in the Interface Builder? Thanks. ...

UISearchBar Animation

It's common to see a UISearchBar in an application, that upon a click, will enlarge and animate into view with a keyboard. I'm curious, is this something the iPhone SDK provides for free, or is the Animation code more than likely written by the developer? I use a UISearchBar in several controllers, however by default a keyboard just pops...

Affine Transformations vs Keyframing

This may be a silly question to a graphics guru (which I am not), but what's the difference between affine transformations and keyframing? I'm reading about the former in the iPhone cookbook, and she states that 'Affine transforms enable you to change an object's geometry by mapping that object from one view coordinate system into anothe...

How do I assign a name to a control and retrieve it in an event method?

I have a IBAction such as: - (IBAction)showPicker:(id)sender; How can I get the name of the control from the sender variable? I am typically a c# coder so have tried the following to no avail senderName = ((UIButton *)sender).name; I need something more descriptive than the control id (not the button title either). I have 5 button...

UITableView, intercepting Edit mode

I'm curious if it's possible to intercept the default methods of 'Edit' mode on a UITableView. Typically you get a free 'delete' button if you side swipe a UITableViewCell that has delegate methods associated with it. I'd like to change the delete to some other, arbitrary selector. Instead of deleting the cell, I'd just like to run a hel...

HTTPS on iPhone

I need to be able to use https to connect to a server and I'm wondering if there's recommended way of doing this on the iPhone that's NOT: - an undocumented api call - does not require manually storing certificates in the app bundle Thanks all. ...

Can I embed a custom font in an iPhone application?

I would like to have an app include a custom font for rendering text, load it, and then use it with standard UIKit elements like UILabel. Is this possible? I found these links: http://discussions.apple.com/thread.jspa?messageID=8304744 http://forums.macrumors.com/showthread.php?t=569311 but these would require me to render each glyp...

UINavigationController Push Views

Hi All, Sorry - this may be an easy question, I'm new to iPhone development and still wrapping my head around Views vs ViewControllers. I have a NavigationViewController and I can push Views using the following method in the RootViewController which is connected to a Bar Button Item: - (IBAction)switch:(id)sender { NSLog(@"Swit...

Best practice in cleaning up memory for iPhone apps?

I have seen sample source code around that uses different ways of releasing/dealloc'ing objects, so I was wondering which way is deemed the "best" one. A few options on -dealloc: 1) Release objects - (void)dealloc { [obj1 release]; [obj2 release]; [super dealloc]; } 2) Set objects to nil - (void)dealloc { self.obj1 =...

What method gets called when iPhone app exits?

I know that -applicationWillResignActive gets called upon an incoming call, but is there a standard method that gets called if the user hits the "exit" button (the only button on the front of the iPhone)? ...

Flash (or Silverlight) on the iPhone

I'm interested in developing applications on the iPhone and being a .NET & ActionScript developer I'm a bit scared from the learning curve of Objective-C Cocoa Touch programming. I know that Adobe has Flash player ready for iPhone and I think that Apple doesn't want it just for political reason. Is there any easy alternative to build a...

How can I fix the sound in my iPhone app for iPhone OS 2.2?

The sound for my iPhone app worked fine when I was running iPhone OS 2.0. I updated to OS 2.2 and now the sound only works with headphones. How can I make the sounds work for both headphones and the speaker again? ...

Timing loop results.

I got a little stuck and I'm hoping someone can point me in the right direction. I have an NSMutableArray that stores a sequence. I created an enumerator so that a while loop can get the content of the array one by one. Everything works fine however I want the methods to be called with a 10 second gap in between each call. Right now it ...