iphone

iphone custom movie player component

Anyone knows how can I create a movie player component the same way UStream has created it's own? (Is a custom component that doesn't need to go to the iPhone's Fullscreen component) Thanks ...

NSXMLParser Memory Allocation Efficiency for the iPhone

Hello, I've recently been playing with code for an iPhone app to parse XML. Sticking to Cocoa, I decided to go with the NSXMLParser class. The app will be responsible for parsing 10,000+ "computers", all which contain 6 other strings of information. For my test, I've verified that the XML is around 900k-1MB in size. My data model is to...

UISegmentedControl Best Practice

Hi all, I'm trying to work out the "best" way to use a UISegmentedControl for an iPhone application. I've read a few posts here on stackoverflow and seen a few people's ideas, but I can't quite sort out the best way to do this. The posts I'm referring to are: http://stackoverflow.com/questions/1559794/changing-views-from-uisegmentedc...

SSLv3 communications in Objective-C

I would like to know if Iphone OS supports SSLv3 network communications ? Are there any tutorial or how to on the web ? I didn't find anything about this! Which framework/library should I use ? Thanks ...

Expected';' before numeric constant

hi plz tell me what to do in this type of error??? i have: NSString *a = @" b ="1.0" " ...

Set the same default background of the UITableView to a custom view controller

I need to set the same gray stripped background to another view. Can anyone help me on this one? Thanks, Leonardo ...

Problems when using Quartz 2D on NSOperation

Hi! I need to paint an image using some data and show it on my iphone application. Since the painting takes significant time (2-3 seconds on device), I want to perform painting on a different thread. Also, I want to be able to cancel painting, change something in data and start it again. So it's best for me to use NSOperation. Now, when...

How accurate is the reading for GPS in iPhone's SDK?

Using iPhone's SDK GPS API, how accurate can I get? Is it within a few meters or kilometers? I'm interested in the accuracy when it is indoor. My software will only be used in door. ...

How to load images from the Documents folder that have been saved dynamically?

Hi, I have problem with loading images from the Documents folder of iPhone application into the tableView. In a separate request, I check on the server all the images available and download them into the "images" folder under Documents. I am pretty sure that the images are saved correctly. NSString *filePath = [imagesFolderPath string...

Tax calculation, Included & excluded, worldwide market...

I finishing the engine of my iPhone App, and need a flexible setup for tax handling. This is for LatinAmerica, USA & Europe markets. The App is a POS system. I support right now 2 taxes, and store the taxes in a table with Code, Name, Percent, FixedValue and if is included or excluded of the price. In this enough? Exist some sample or...

IPhone SDK_A table view inside of a table view

I want to make a table view inside of a table view. I mean how can I make an app that clicking a cell goes to another list of cells to click to go subclass? ...

switching between 2 different view controllers that are presented modaly

Hello guys, I have a main UIViewController that is create at startup that I only use to switch between 2 different view controllers that are presented modaly. Here my code that does the switch: - (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info { [self dismissModalView...

How to stop routers blocking traffic within a network?

I have an iPhone app which relies on connecting via the local network to a server running on a user's mac/pc. The server is running an http service on port 8080 I already add exceptions to the default windows firewall, or the default mac firewall to ensure traffic is allowed to reach my app. However the most common customer issue is t...

Formats for communicating between backend and Objective-C/Cocoa

I'm developing an iPhone app that is connected to a backend server. It needs to communicate with it many times, through several requests. I'm sending HTTP messages, but I want to receive more complex responses that I can parse somehow. Supposedly, I can provide any type of format for responses from the server, so my question is: which on...

Include a picture in mailto:

I'm interested in placing a picture (along with some text) in a prepared email for the user to send off. Is there any way to use mailto: to do that? ...

[iPhone] release NSData in NSManagedObject

Hi, I use datamodel to store 2 objects : Video, Images. Video contain just string attributes and Images have 2 "Binary data" attributes. At the start the 2 binary data attributes was in the video object. But all videos are loading during initialization of UITableView. For 400 videos binary data represent 20 Mo, so imagine with 4000 vid...

Best way to split and convert url params into string values

Hi I would like to split a custom url for app opening in iPhone into values, my scheme would be something like: appname://user=jonsmith&message=blah%20blah Where I would like to be able to get "user" and "message" as two NSStrings. Any advice on best approach? ...

Wizard style of interface in iPhone

How would one implement a wizard style interface for the iPhone? For instance I have a form that I would like to break down into 5 different pages or views instead of putting all the information to fill out into one page or view. This interface must have the ability to go prev or next in case they want to change something on page 2...

Streaming Video (or Progressive Download) to the Droid Browser

I am trying to stream video (or use progressive download) to a Motorola Droid Browser and am not having a lot of luck. With my iPhone, I can direct Safari to http://xxx.xxx.xxx/FileName.mp4 (which is an MPEG-4 video file), and Safari opens quicktime, and the video plays. However, with the Droid, I go to the same web address and am face...

Grouping two Core Animations with CAAnimationGroup causes one CABasicAnimation to not run

I have two animations that I'm trying to perform on a UILabel on the iPhone with OS 3.1.2. The first rocks the UILabel back and forth: CAKeyframeAnimation *rock; rock = [CAKeyframeAnimation animationWithKeyPath:@"transform.rotation.z"]; [rock setBeginTime:0.0f]; [rock setDuration:5.0]; [rock setRepeatCount:10000]; NSMutableArray *value...