iphone

How to move to First viewController from last View controller among multiple view controllers

Hii...i am new to iPhone programming..can anybody help me out please...!! I have multiple viewControllers..in First ViewController called HomeViewController i called the method [self presentModalViewController:aboutViewController animated:YES]; in a IBAction for aboutButton to move to AboutViewController and in the AboutViewController i ...

iPhone pathForResource vs bundlePath

I want to use pathForResource, but it doesn't look like it will create the path if one doesn't exist. Therefore I'm trying to create one manually by doing the following: NSString *path = [NSString stringWithFormat:@"%@/%@.plist",[[NSBundle mainBundle] bundlePath],@"myFileName"]; I'm creating files dynamically, so I need to access th...

Local Notifications Custom Time Interval

I'm trying to implement local notifications for a calendar-esque application, and I've hit a barrier with reminder intervals. Local notifications seem to only take NSCalendarUnit constants as repeat intervals ( see http://developer.apple.com/iphone/library/documentation/iPhone/Reference/UILocalNotification_Class/Reference/Reference.html#...

Dismissing UIAlertViews when entering background state

Apple recommends dismissing any UIAlertViews/UIActionSheets when entering background state in iOS 4. This is to avoid any confusion on the user's part when he relaunches the application later. I wonder how I could elegantly dismiss all UIAlertViews at once, without retaining a reference to it everytime I set one up... Any idea ? ...

How to merge two arrays in a plist?

I have a plist with two string arrays. I want to merge these two arrays. I tried selecting all the strings in one array and copying to the other, but I cant select multiple items. I don't want to do this programmatically. I'm on a Mac using xcode. Any thoughts? ...

How to make a Navigation bar transparent and fade out like in the photo app in the iPhone

Hi... i am new to iPhone Programming ...can anybody help me out please.. i want to develop an app like photo app in iPhone.. How to make the naveigation bar and toolbar transparent and fadeout like in photo app in iPhone Thank u .. ...

How to use ABAddressBookRef for companies instead of persons?

I would like to use iPhone's Contact address book or ABAddressBookRef to pick up a company, edit a company or create a new company. For editing/creating, I would like to show only fields of name, address1, address2, city and state. I tried to google information about this. What I found are some related constants or strucs, such as: kAB...

Identifying an iPhone to a server

When a smart phone, specifically an iPhone, connects to a server through an app, what information, if any, is available to the server? Just in case knowing the scenario helps answer my question: There is an iPhone app that allows the user to enter an IP address and port number from which the app receives a data feed. I would like to...

Grouped tables just for layout in IB

Hi, I'm new to Interface Builder and Objective-C. I'd like to layout an iPhone interace in IB similar to the "edit event" or "edit contact" in the native iPhone apps where Grouped Tables are used. It seems like i have to add several very generic-looking Grouped Tables in IB, and then write a bunch of -cellForRowAtIndexPath: and numberOf...

Two-way sync between iPhone application and web application

I have a web application that relies on a MySQL database, for which I am thinking of building an iPhone app. This app would allow users to browse/insert/update/delete data on their account on the web application. The easiest way would be to build the iPhone app simply as an interface for the web app, ie each operation requires to be con...

Flick motion for iPhone

Hi all, I am in the process of developing a project that will require the flicking or FLICK MOTION of an object such as a ball...obviously it will have to travel through a trajectory based on the position and the path travelled by the finger on the iphone screen...Please can anyone help me out with the code or how to go about getting t...

UI Binding Similar to MonoTouch.Dialog

Is there a way to use MonoTouch.Dialog or similar to bind domain objects to Interface Builder / MonoDevelop generated outlets? I love the reduction of glue code but I still want to design my forms in IB for aesthetic reasons. ...

How to organize code within on Objective-C class/file?

New to iPhone development, not new to software development in general. I want my Objective-C/iPhone source code to look "unsurprising" to someone else reading it. Wondering what is the accepted practice for code organization within one class? As an example, I have a view controller like so: @interface SomeViewController : UIViewContr...

Enabling multitouch zoom in/out with UITextView

I have a TextView that's about the width and height of the screen and filled with text. How do I enable multi-touch zoom-in/out to make reading more user friendly? ...

base64 for basic authentication in objective-c

I've seen some similar questions here on SO, but none recent - so i'm checking in to see if anything's changed. I see that didReceiveAuthenticationChallenge: is perfectly capable of doing a base64 encode for basic authentication, but the server i need to send a basic auth Authorization: header to doesn't return an HTTP401 and (I assume...

does viewDidLoad get called after a popViewController call?

Does viewDidLoad get called when you're popping back to a UIView? ...

iphone UITabBarController question

Hello - I have a tab bar in may app that controls 5 different views. To ease memory issues, I would like to release a large image when leaving the tab then reload it when that tab is selected again. Any ideas? I am looking for a delegate method that would activate when a user selects a different tab ...

iphone - not leaking

What's the right way to do this? I have an array that I will use on several methods. I will add objects to it, get values, replace values, etc. Today I do this: I declare it on .h, using something like NSMutableArray *myArray; as soon as the application starts, I declare it on .m doing something like myArray = [[[NSArray alloc] in...

iOS 4 Core Data... any changes with multitasking?

I have a question, i carefully went through and thoroughly understood the tutorial at http://developer.apple.com/iPhone/library/documentation/DataManagement/Conceptual/iPhoneCoreData01/Articles/01_StartingOut.html#//apple_ref/doc/uid/TP40008305-CH105-SW1 for iOS Core Data. The issue was that when i coded everything and run on iOS 4 with...

Facebook's iPhone application -- User Interface for Inbox

I am trying to figure out implement a Compose New Message view that works in the same way the Facebook iPhone application does theirs. It's very similar to MFMailCompose and MFMessageCompose but both of those are already set to search through the iPhone's contacts. Facebook's application looks exactly the same except theirs searches thro...