iphone

iPhone:Recording conversation feature?

Hi, I want to develop an iPhone application which has to record the phone conversation. Can some one give me the instruction how can i achieve this? thank you. ...

Merge iPhone app delegate into another project

I have an open-source iPhone API that I downloaded, and that is a standalone app with its own app delegate and applicationDidFinishLaunching: method. How do I merge this into my own app, and keep all the methods in the app delegate? ...

How to set focus on textarea of html using objective c/ iPhone

Hi, I am using this code to set the focus on textarea of HTML control using javascript in objective c. But its not working in UIWEBVIEW, while other code working for getting values of the html controls with same controls ID. here the code: it is working NSLog(@"m values %@",[webView stringByEvaluatingJavaScriptFromString:@"document.get...

iPhone:Can one mac be used for two business purpose?

Hello all, I have a small doubt, so apologies first. I am creating an iPhone application using my Macbook. I want to upload it into AppStore after some days by creating a developer certificate and use provisioning profile. My friend wants to create his own iPhone application and wants to upload to AppStore for him personally, but he wan...

How to call a webservice from an iPhone app

Hello all, I want to call a .net web service from an iPhone application. Like I want to call a web service with respect to name and display the history sent by the web service. Can anyone help me with the tutorial or some code how to do this. ...

Date Stamp into a String

I'm sure this is a easy problem, but I just can not seem to find how to do this anywhere. I need to use the current Date and save it into a String. I do not know how to get the dat stamp. Could someone please help me out? Thank you for your time! -Jeff ...

Is it valid to ask an NSNumber for an NSDecimal value whe the NSNumber was initialized with an Integer?

Example: I have an NSInteger and I wrap that into an NSNumber object. Now I want to have an NSDecimal with the value of that NSInteger. So could I ask: NSDecimal myDecimalFromMyInteger = [myNSNumberObject decimalValue]; Or is this problematic on some way? Or must I always ask for the exact same value as I used to create the NSNumber ...

Call an onclick method from one view to another iphoneprogess hub iphone sdk

Hey Guys, I have a view with a button which downloads files when clicked. Question I have is is it possible to call that click method from another view> THanks ...

How to avoid scrolling as well as acquire the whole frame of UITextView in iPhone?

Hello, I have a fixed size UITextView whose text keeps varying. I want to display the text in a fashion that user dont need to scroll and still he can see the whole text. Also if the text is very short then, it will acquire the whole TextView to make sure user dont see an empty space.When I say the text keeps varying means the length ke...

Cocoa-Touch How to: MPMoviePlayerController loop?

I have an app with a splash screen. For the splashscreen I've decided to add a m4v movie. I'm using the MPMoviePlayerController to show the movie. Everything is working as expected except for one thing: I'm trying to make the MPMoviePlayerController loop by subscribing to it's MPMoviePlayerPlaybackDidFinishNotification notification and ...

Call method from Modal View Controller

I have a view controller which presents a modal view when a certain button is tapped. Upon closing the modal view and re-revealing the original view underneath, I want a refresh method to be called. How do I call this refresh: method in OriginalViewController from ModalViewController? I know this works if I do it in -viewDidAppear, but ...

UITableView, how do I know what Section during cellForRowAtIndexPath?

I have a UITableView displaying a list of Cities. I want to separate them by State. I can't seem to figure out how to get it to pick the right items out of my Array. If Section 1 (Arizona) has 2 Cities and Section 2 (California) has 2 Cities, during cellForRowAtIndexPath, Section 2, City 1 has an index of 0, even though it's the 3rd ite...

UIPageControl render quirk with UIScrollView

I'm building an iPhone application and like most I am trying to implement a UIScrollView with a UIPageControl, however I am coming across a very quirky behavior, which I assume may be a bug. Hopefully one of you has seen this before because it is driving me nuts. Basically, the page control works fine, everything is hooked up and works ...

Objective-C - simple setting property example erroring with 'request for ___ in something not a structure or union'

Hi all, I've been banging my head with this one this evening and am sure it's something very simple that I've missed I've created a new project with the appdelegate and a view controller class as below. The view controller synthesises the property in the .m, and the app delegate header imports the view controller .h file. Code below: V...

NSMutableArray addObject, unrecognized selector

I'm trying to create an array (States) of arrays (Cities). Whenever I try to add an item to my City array I get this error: 'NSInvalidArgumentException', reason: '*** +[NSMutableArray addObject:]: unrecognized selector sent to class 0x303097a0 My code is as follows. The line it errors on is [currentCities addObject:city]; I'm sur...

HOw to change the title of the adressbook navigation bar ?

HI ,, I am using addressbook API when i call via modal view controller and the addressbook navigation bar comes from bottom and it shows the title "ALL CONTACTS" iwant to show here my app name also show the prompt on the navigation bar . How can i do it ? i tried it as :- ABPeoplePickerNavigationController *abpicker=[ABPeoplePicker...

How to add a notification for pop view controller in iphone application?

I have seen the sample application of iPhone MP-movie player - controller. They have added a notification on the sample code. // Register to receive a notification that the movie is now in memory and ready to play [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePreloadDidFinish:) name:MPMovieP...

Overlaid images

I'm creating an application where I will be drawing two circles onto the screen, one large circle with a smaller circle inside. I want the user to be able to touch/drag on the screen inside or outside of the large circle and it will move the smaller circle in that direction. If the user touches outside of the large circle the smaller cir...

Easy way to see saved NSUserDefaults?

Is there a way to see what's been saved to NSUserDefaults directly? I'd like to see if my data saved correctly. ...

iPhone UITableView and CoreData conventions

Hi folks, I've got a question on the conventional way to structure something similar to the following: I have a screen which has a single line of data followed by a list of other data - and so I thought using a grouped UITableView with a single row'd section for the top and the rest in the section below would work well. As I'm using C...