iphone

iphone development

Please guide me to write a code for iphone where i want to display the path of the browsed image along with the displaying that image? ...

iPhone Device Orientation Bug

Hi all, I'm stuck since few days with a weird issue. I've been looking for a solution on Google, and I don't see anyone having the same bug. My application doesn't want to rotate. I'm using several viewController, implemented the shouldAutoRotateToOrientation method but the view controllers don't want to rotate. I've done the debug, b...

UIActionSheet unrecognized selector error

I tried compiling and running this simple code but it's throwing error - (void)doSomething { UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Are you sure?" delegate:self cancelButtonTitle:@"No Way" destructiveButtonTitle:@"Yes, I'm Sure!" otherButtonTitles:nil]; [ac...

UIImage reduce byte size

I am using following code to resize an image - it all works well and as expected... Resize UIImage the right way I use interpolation quality as kCGInterpolationLow and UIImageJPEGRepresentation(image,0.0) to get the NSData of that image. The problem is that the image size is still a bit high in size at around 100kb. My question is ca...

detecting long tap on iPhone.

Hi I am working on an iPhone app which requires me to check if the button has been tapped & held pressed for 6 seconds & then fire an action which is playing some sort of sound. How should I detect this 6 second tap ...? On the other hand the user can also keep on tapping button for 6 seconds & then the same action should fire. Wha...

Find out which segment the image resides in objective c

Hi, I have created a rotating wheel of 5 images. What I would like to find out is which image ends up in the top right corner. Is there any way I can realize which one is in the top right corner through coding? Thanks :) ...

MYSqlite Error on Xcode

Hi friends, I am using MySqlite in my iPhone project. I am getting all the details from my database...now when i created a new table and tried to retrieve the values from the same database i am not getting its values...i tried refreshing the database and then using it. Still only values of that table cant be retrieved..what can be the p...

View gets called on the wrong tab.

Hey! I have my main ViewController which has a tabBar and a navBar. My tabBar has 2 buttons, in the first view, I added to its navBar an Add button, which should call another view. That's working fine except that this view is being called on the other tab instead of the one where the button was clicked. This is my code: -(void)add:(i...

Playing continuos sound in iPhone app

Hi I have an iPhone application which requires me to play a looping mp3 sound during the entire lifetime of app. But based on some actions performed by user this mp3 should stop/pause for while & another mp3 should play & then this mp3 should resume playing again. I havent really used any audio API on iPhone yet, I've just used Audio...

Sharing UINavigationBars among xibs

Here's my situation: I have a UITabBarController that presents several UINavigationControllers when it's buttons are pressed (done through Interface Builder) the UINavigationControllers have UINavigationBars (their 'Shows navigation bar' is ticked in IB) on the navigation controllers I programmatically push UIViewControlleres with cust...

Combining two iphone applications (1 ViewController, 1 TabBarController)

Hi there, I am currently working on an application in which I am making a catalogue that will contain different products. So far I have made my startup menu, which includes three buttons (one for the catalogue, one for settings and one for instructions). When pressing the catalogue button, the app switches to the CatalogueViewController...

Display a unit on pickerview selection indicator?

I have a pickerview with 2 components allowing the user to select hours and minutes. I have seen many apps displaying a "hours" and "minutes" label on the selection indicator. How do i do this.? ...

UI elements - make position fluid?

Hi there I realise you can make dimentions fluid by using the autoresizing mask to give a flexible width/height. What about making a position fluid? For instance if I set the centre of a UIButton at self.view.frame.size.width/2 how can I make it reposition if the view changes size? Thanks Tom ...

Adding a button in the bottom of a TableView

Hi guys. I'm trying to add a button on the bottom of a TableView, without any success. The idea isn't to use the tableFooterView property, as that doesn't show the button in a fixed position. My idea is more along the lines of the Facebook application's Notifications bar on the bottom. I'm using Three20. Any pointers on how I can ac...

UIWebView isn't accepting multiple touches

To display attachments on a messaging system I'm developing for my app, I've got a UIWebView which is presented in a ModalViewController, displaying the file contained in the attachment. If it's any help, the code I'm using to display the file is as follows: NSUrl docUrl = NSUrl.FromFilename(filePath); NSUrlRequest request = new NSUrlR...

Email inbox integration

It's possible to create an app based on email. I have to send message and get it's reply. i searching on the internet and i read that for sending email via SMTP i have to use external library, but what about the inbox? thx a lot. ...

Garbage after JSON - PHP Array problem YQL

Hi, i'm using YQL to send data back to an iPhone app i'm developing. I've got a JSON parser on the iphone and a PHP page on my webhost. This is the PHP: <?php header('Content-type: application/json'); $arr = array(); $result = $_GET["q"]; $yql_base_url = "http://query.yahooapis.com/v1/public/yql"; $yql_query = "select * from ...

How to know if we are on an iPad or on an iPhone.

Possible Duplicate: API to determine whether running on iPhone or iPad Hi, I'd like to test the device in my application, to know wether I'm on a iPad device or on an Iphone. is there a easy way to do that ? thank's au lot David ...

iPhone: NSURLConnection not working with POST data for https on WiFi

Hi All, I have a piece of code that uses NSURLConnection to send a request to the server(HTTPS). The request has POST data (url parameters) attached to it using setHTTPBody. The piece of code works fine on device on GPRS data network. But, when trying on a secured WiFi network, the NSURLConnection calls delegates didRecieveResponse and ...

Button Pressed method location

This is probably going to be tough to explain. Basically I have the following structure to my project: I have an object (graph) which controls other objects (nodes) and (arcs). Everything is working fine and dandy but I've found the need to add buttons to my node objects. This is working fine too, I have an NSLog output letting me kno...