iphone-sdk-3.0

How can I programmatically add more than just one view object to my view controller?

I'm diving into iPhone OS development and I'm trying to understand how I can add multiple view objects to the "Left/Root" view of my SplitView iPad app. I've figured out how to programmatically add a TableView to that view based on the example code I found in Apple's online documentation... RootViewController.h @interface RootViewCont...

how to create folder structure in documents folder of my iPhone app

Hi friends, I have a folder structure in my server and I need to navigate through that folder at device side. I receive the folder structure in XML format. My query is :- 1) Can I create the same folder structure in documents folder of my iPhone app. 2) What would be the best approach whether to create folders at device documents folde...

adding selected numbers together

I am working on a project that needs to add selected numbers together and show answer. so if I have say 10 textfields with numbers and the user picks three of them I want to show that total. thank you ...

route info in mapkit in iphone sdk

Hi, I want to write some information in the navigation bar about a route..just as the default application does, like distance between the current location and the selected destination, direction etc. How would i know when a certain pin is clicked as to provide the respective info. Thanks in advance. ...

OpenGL ES 2.0 equivalent of glOrtho()?

In my iphone app, I need to project 3d scene into the 2D coordinates of the screen for some calculations. My objects go through various rotations, translations and scaling. So I figured I need to multiply the vertices with ModelView matrix first, then I need to multiply it with the Orthogonal projection matrix. First of all am on the ri...

switch between views of 2 xib

i hv to xib first xib contains 4 views, and second xib contains only one view. v1,v2,v3,v4 i need to navigate from 2nd xib's view to first xib's 2nd view (i.e v2)_.. how can i do that regards shishir ...

UIScrollView custum paging distance

Hey! I have a UIImage (Image's width is > 320px) in a UIScrolView (covers full width of screen) and want a paging effect. All the tutorials/examples I found explain how to do it with multiple UIImages or UIVIews, but I only have 1 UIImage in the UIScrollView. My aim is it to create a 'tape measure' like effect. and the scrollview shou...

Iphone multiple images from uiimagepicker

Hi, I'm developing an Iphone application where you select photos from your gallery and then make a new album, the problem it's that I am only getting 1 image at a time. My problem it's that I need to select multiple images at a time or even the hole album. How can I do that? ...

Feteching/Cashing Data From UIWebView

Hi, I was wondering if there is anyway to get what is being displayed in UIWebView. e.g; you have opened bbc.co.uk in UIWebView and you wanted to save all the content of that page, Is there anyway to do that? Thanks. ...

Tab bar within Navigation bar

I have a navigation based app, in one of the screen I now want to add a tab bar. Can any one please share code snippet on how I can do that. Thanks ...

Open PowerPoint in Iphone/Ipad and display it in my application

Hi, I'm trying to write application which will be able to display MS Word docs, MS PowerPoint presentations(ppt). Is there some kind of support for those formats. I know that mail application can open PowerPoint. If there is no support for it what approach should i take ? Thanks in advance. ...

Why is my app delegate's didFinishLaunchingWithOptions method all of sudden being called AFTER my RootViewController:viewDidLoad method?

Hi. I've been playing with the iPad's SplitView template in Xcode. Here are two of the many important methods that are auto-generated for you by the Split View-based Application template... AppNameAppDelegate.m #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpt...

"out of scope" error when iterating an NSMutableArray

Why am I getting an "out of scope" error whenever I try to access the "url" variable in this loop? for(NSString *url in self.winnerImageURLs) { [mediaItemString appendFormat:@"{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"},", url, url]; } The class of very item in the "self.winnerImageURLs" NSMutableArray comes back a...

How to retrive message history from iphone programmatically ?

I needs to show messages which are available in history. I mean messages that are present in iphone. I try from google but no any appropriate help. Is there no any way to retrive it from iphone ? or is there any alternative way ? Please mention that i just needs the history of messages. ...

Circular Dependency of Navigation Control in iPhone

Hi everyone , In my view this is one of the strangest problem i have ever come across in iPhone app development. Let me explain the scenario , i have main screen 'A' on which i have a Button that directs me to another Screen say 'B'. Now on Screen 'B' i have a feature in which user can send a mail to his friend for promotion purpose e...

Button not showing up after "unhiding" it

Hey everyone - I cant seem to figure out what i am doing wrong here. I create a button in my rootviewcontroller. I immediately hide it, when my parser is done that was started on a seperate thread I send it to a method that "unhides" my button. But... its not "unhiding" it. Here is what i have in my ViewDidLoad of my RootViewController...

Why is my UIWebView not scrollable?

In my most frustrating roadblock to date, I've come across a UIWebView that will NOT scroll! I call it via this IBAction: -(IBAction)session2ButtonPressed:(id)sender { Session2ViewController *session2View = [[Session2ViewController alloc]initWithNibName:@"Session2ViewController" bundle:nil]; self.addictionViewController = ses...

How do I add a button to the subtitle of an MkMapView custom annotation?

Basically my program displays many annotations on a map. after the user clicks on one, It displays the title of the location. How can I add a button under the title that will display a new window with more information on the location? I would also be content with a button at the bottom of the screen that is greyed out until one location ...

how use google api in iphone to query hotels around my place

Hi, I am new to google apis and iphone LBS related apps. I need to know how to use a google api and get the list of hotels around my GPS location. Here the same functionality is achieved through javascript. how to do this on iphone application ? http://code.google.com/apis/ajax/playground/#localsearch_with_markers ...

how to find whether a person is inside a building using gps co ordinates

hi, I am working on a iphone GPS stuff. I have the 4 GPS co ordinates of a building. Is there a way to find out whether a particular GPS coordinates is inside this 4 co ordinates. That is to find out whether a person is inside the building. ...