iphone

protobuf-net - backticks, Dictionaries & .proto files

I'm trying to talk to a C# program that uses protobuf-net from an iphone using http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers Unfortunately the .proto file I've been given (generated from the C# source code) includes an a line that protoc is rejecting: repeated Pair_Guid_List`1 Local = 6; It appears that this is because ...

i want to call a phone number from the simulator

i have a phone number in my array and i want to press call button and number should be called so how it happen in simulator..i am new in this field. ...

calling UIview methdods

I want to call this method in a user defined function - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation Is it possible ?? if yes,How ?? Pl. guide me. ...

Executing codes in viewDidLoad

In my .m file : (void)viewDidLoad { [super viewDidLoad]; /* Some codes for picker view and slider */ } I used a button to navigate to second view by using the below code: (IBAction)goToPlay{ [self presentModalViewController: secondViewController animated: YES]; } I used another button to go back to first view by using be...

How can i make phone calls from my application?

i want to make an application which makes phone calls.i am new in this field.Please give some guide lines. ...

How do I replace a modal view controller?

I'm using a modal view controller to allow a user to select an address book entry and email address. The ABPeoplePickerNavigationController object is displayed via presentModalViewController:animated: [self presentModalViewController:picker animated:YES]; What I want to do is keep the modal dialog up, but when the user selects the ema...

How to change the default text of Cancel BUtton which appears in the UISearchBar +Iphone

HI I am developing an Application where i wanted to change the text of Search String in the SearchBar. I wanted to change the text of Cancel Button Also which appears next to the SearchBar. Before entering any string in the search bar we wil get the Search String as the default string. i wanted to change the text of that string and when ...

Having trouble with UITabBarControllers in Interface Builder

I'm building an app in which the root view/window is a tab-based view (created using the XCode wizard for creating a tab-based iPhone app), but there is also a point in the app where I want to create another tab-based view and present it modally. I was having so much trouble creating the modal tab-based view in IB that I eventually just...

A question related to UITextfield

I have code that dynamically load 10 different textfields in viewdidload method now if i click on any UITextfield and then autorotate device then my cursor should directly come to that UITextfield when device rotates from portrait to landscape mode second case is that if i click on any UITextfield and then i click on return and then if...

Is it possible to send database query within a NSUrl request??

Hi i am developing iphone application which connects to a php page using NSUrl request.The php page on the server side ,in turn,connects to the database (mysql) to perform transactions.Till now i was passing only parameters to the actual query on php page which was working fine.But when sending query from iphone end through NSUrl ,e...

iPhone:How to find the control interaction under Touch?

Hello friends, I have a UILabel control in a view. I want to detect touch event occurred when this label touched. I added the following code, which should work whenever touch happens on the view. - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { // This should be called only when the label is touched, not all the ti...

Changing CSS on the fly in a UIWebView on iPhone

Let's say I'm developing an iPhone app that is a catalogue of cars. The user will choose a car from a list, and I will present a detail view for the car, which will describe things like top speed. The detail view will essentially be a UIWebView that is loading an existing HTML file. Different users will live in different parts of the wo...

problem with selector in iphone?

i am having a application where i am generating the uibuttons dynamically want to use same @selector...Now as sooon as event is generated i wanna check for values and pass it to thtroughthat selector how can i implement this code? can anyone tell me a tutorial sort where buttons are dynamically generated and check for particular button ...

How to work with images(png's) of size 2-4Mb.

I am working with images of size 2 to 4MB. I am working with images of resolution 1200x1600 by performing scaling, translation and rotation operations. I want to add another image on that and save it to photo album. My app is crashing after i successfully edit one image and save to photos. Its happening because of images size i think. I ...

How to join a wireless network from an iphone

How can I search for Wireless Network (and connect it after and change settings ) within an iPhone Application? Is it possible? Any ideas would be appreciated! Cheers guys and gals Sam ...

Iphone progressive download audio player

Hi! Im trying to implement a progressive download audio player for the iphone, ie using http and fixed size mp3-files. I found the AudioStreamer project but it seems very complicated and works best with endless streams. I need to be able to find out the total length of audiofiles and I also need to be able to seek in the files. I foun...

Dynamic TextView

Hi All, I need to implemente a textview whose frame should be changed according to input string length. Can anyone help me out how to start the things off.. Thanks, ...

AdMob for iPhone-how much do you get?

I've almost finished my app and I'm thinking about integrating AdMob there. But, in my mind, ads create bad impressions. How much do you earn by adding AdMob to your app? Is adding ads worthy of it? ...

Custom keyboard iphone , having problem with backspace button in UITextView

Hey Guys check this code ( My Custom Keyboard) : -(IBAction) updateTextBackSpace:(id)sender { if([txtview.text length]>0) { NSString *deletedLastCharString = [txtview.text substringToIndex:([txtview.text length]-1)]; [txtview setText:deletedLastCharString]; } else { return nil; } } The...

Trouble with onscreen keyboard orientation in iPhone OpenGL ES application.

I need to take keyboard input in my OpenGL ES application, so I just created a hidden UITextField and added it as a subview to the main window along with the view that presents my content. I use the UITextField to control the keyboard and it works fine in a single orientation. I then changed my code to support all orientations by rotati...