iphone

Weird Switch error in Obj-C

I have this switch statement in my code: switch(buttonIndex){ case 0: [actionSheet dismissWithClickedButtonIndex:buttonIndex animated:YES]; break; case 1: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.sourceType = UIImagePickerContro...

Managing a view while another process runs on iPhone

Hello, I am having a bit of a problem here, I am let the user upload some video to the server however I am having some difficulties managing a view that I am using to illustrate its progress, I know why the problem is happening and i found a way around it (sort of) here my problem So if one tries to make some code that looks something ...

how to solve this intersting UITextView problem

Friends, I've a problem in moving the cursor to first location. I've an application which keep adding the note. When user press "edit" button, i am launching another screen and want to move notes existing text at the bottom of TextView while cursor is on the first location. This behavior is similar to email reply screen. Here email body...

How to make the text of UITextField to appear with First letter Capital in iPhone

Hi, I have a text box and I am only interested in capitalizing the first letter, So how to do that in iPhone UITextField. ...

How can I transcode an IMA4 ADPCM audio file recorded on the iPhone?

For bandwidth reasons I would like to use Apple's implementation of the IMA4 format available for recording on the iPhone. This format is great for space, but it seems to be hard to find any programs that can transcode it into something like linear PCM or MP3. I've tried sox and Transcode to no avail. I need to be able to do this automat...

[UITableView insertSections: withRowAnimation:] causing all table cells to be requested

I'm working on modifying some existing heavy-handed code that simply calls [tableView reloadData] on any change, to using more specific table updates with the insert/delete methods. However, I'm getting some really bad behavior in doing so. Previously, as one would imagine, when the table loaded, it only requested cells for the rows th...

How does the youtube iphone app work

Hi, I want to make a youtube app like application for the iphone, where some videos are streamed/downloaded from a video site. But just by looking at the youtube app, I have a doubt. I searched around on google, and it seems iphone does not have builtin support to play flv files. So how is the youtube app able to play the videos? Where...

iPhone development: How to create colored or translucent background for UIActionSheet?

When you try deleting a note in iPhone's Notes application, an UIActionSheet pops up. The sheet is translucent (but not black translucent). How is that achieved? Is it possible to make the background of UIActionSheet a certain color? ...

How do you add a detail view to a tableview that is indexed?

I have an indexed table view and I want it to have a detail view when I click something but right now it just comes up with a screen with a navigation bar but no title and not text. Does anyone know of a tutorial that teaches you how to do that? Thanks ...

How to copy objects, like AVAudioPlayer

I'm rather surprised at how few objects implement NSCopying. This is the third time in two weeks where I have needed to duplicate an existing object, without having to either go to disk and reload, or recreate the object and set its settings. Now I have to duplicate an AVAudioPlayer sound. Why? I want to play the sound twice, withou...

When application is behind the VPN IPSec, How can I connect it through my iPhone application?

Hi, I am making iPhone application for accessing bugzilla (application). Rightnow my application is allow to access bugzilla from anywhere without VPN IPSec, but whenever some bugzilla's required VPN IPsec authentication to use from outside the network, It will not allow to access bugzilla from my iPhone application, how can I code to ...

How to add controls beneath a UIWebView

What's the simplest, fastest, or otherwise (objectively) best way to add a couple of controls (e.g. some UIButtons) beneath a UIWebView? To be clear, I'd like to display a regular scrolling UIWebView, but when scrolling reaches the bottom I'd like there to be some UIControls after the web content. I'd rather not fake it with HTML/CSS co...

iPhone Sqlite Performance Problem

Hey guys, here is the low down. I have one table, consisting of a primary key(col1), text(col2), and text(col3). Basically a map. This table contains about 200k rows. It basically takes me about 1.x seconds to retrieve a single row (this is all I want). I'm basically using select * from table where col2 = 'some value'. I've tried creat...

Are there Constraint Layout Managers on iPhone OS?

The CA Programming Guide is talking about Constraints Layout Managers. However, the CALayer in the iPhone SDK doesn't have any constraints property or addConstraint method. They say iPhone OS just doesnt provide custom layout managers. But how about the standard ones? ...

Send iPhone HTTP request to Apache PHP webserver

I am programmer with a games and 3D graphics background and at the moment I would like to brush up on my networking and web development skills. I have a task that I would like to accomplish to do this. My idea is that I would like to be able to send a HTTP request or something similar to my webserver, which runs a LAMP based setup. I wo...

SIO2 Interactive SDK camera Moving

hello, does somebody know how to move the camera to a specific position? ...

iPhone Development - Another question on resizng UILabel & custom UITableViewCell

Hi folks, I've used following function in some of my projects, but recently I've created a small example which suggest that it's not reliable (at least in some situations): [NSString sizeWithFont:font constrainedToSize:size] [NSString sizeWithFont:font constrainedToSize:size lineBreakMode:lineBreak] I created a custom UITableViewCel...

how to customize uistatusbar in iphone?

is there a way to customize the uistatusbar??? ...

how to change from one Viewcontroller to UITabldeview controller?

i have coded in appdelegate.m as following to change from currentview to UItable viewcontroller?but i am getting error,tab is a uitableview controller tab = [interviewViewController alloc]; [viewController.view removeFromSuperview]; [viewController.view addSubview:tab]; [window addSubview:viewController.view]; ...

The correct NSPredicate format for one-to-many relationship in Core Data

Hello, I have a managed object model A and B with one-to-many relationship. For this particular task, I want to retrieve all A objects which has a relation to B with a property matches to "string". I had tried @"ALL bObjects.bProperty MATCHES 'string'", and it caused an objc_exception_throw in: [NSSQLGenerator generateSQLStatementFor...