iphone

What is the correct dimentions for fullscreen video format on the iPhone

I wan't to play video in fullscreen mode on the iPhone, but when I try to figure out how to transcode my videos I get confused about the video format specification from Apple on http://www.apple.com/iphone/specs.html Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity v...

Rotate UIImageView and still get x/y click position

Hi, I have subclassed UIImageView to create a soccer ball. The ball bounces and moves along an x & y axis, and depending on where you touch the ball, the ball will move as you'd expect a soccer ball would. My problem is that I would like to rotate the Ball(UIImageView), but still know the x & y positions from it's original position. ...

Want to start iPhone development

Hey, i am done with .NET and web dev. and want to start writing applications for iPhone. Where do i need to start like - any SDK or something i need to get - what language\s need to learn - i use windows, will i have to switch to mac for iPhone development - is there any iPhone device simulator or will i have to buy iPhone as ...

iPhone: Is there a pre-made UISettingsView?

On startup, if the user hasn't done any setting of NSUserDefaults, I want my main view to do a flipside view that brings up the same stuff that shows up in the Settings app. Is there an API for instantiating the same controller that Settings uses, or will I have to reimplement a table view and controller myself? ...

How to catch sigpipe in iphone app?

Hi, How can i catch sigpipe in iphone/objective-c? thanks ...

iPhone Login Screen that shows a Table View after logging in the user

Hi, I have a navigation based template application, I parse data into table view. I want to put a login screen before parse the data. I did the login screen and and succeed the login check. My problem is that when the user presses the button I change the view to the tableview. what a way should I draw? I want to learn how can i close the...

Is there an objective-C library to talk with a CAS server

Is there a library already created to talk with an CAS server via objective-c? I know there are many supported clients but have yet to find anything I can use on the iPhone. ...

iPhone dev - In didReceiveMemoryWarning or every time

In a multi-view application, do you think its better to let views automatically get unloaded in memory tight situations, or to actually only ever have one View Controller allocated at a time, and when you switch views, the new one is created, the old one removed, the new one adde d and the old one released. Deallocating every time also m...

Is there a way to resize TTThumbsViewController's grid?

I am using TTThumbsViewController to display a grid of thumbnails, very easy. However the hard part is what if I want to display a custom view at the bottom of the grid? And I don't want the view to be part of the scrollable grid. How do I resize the thumbnail grid and then attach my own view to this controller's view? Think of this view...

Wifi vs. Edge/3G and componentsSeparatedByString (NSString)

Hi, does anybody has a clue why downloaded html code via Wifi is different from the same url's content using Edge/3G? I noticed it when using the function because the output from Wifi has much more lines than the output from 3G. Analyzing the code I could see that only a few line breaks were detected. Here is the code: NSString *htmlC...

UITableView won't update properly (even with call to reloadData)

I am producing an iPhone app for which part of the interface is exactly like the 'Most Popular' section of the iPhone YouTube app. This 'popular' section is accessed from a Tab Bar at the bottom and the navigation bar at the top contains a UISegmentedControl to select 'Today, This Week, Month etc..' Because most of the app consists of...

How are touches handled by a UITableView?

I'm trying to better understand how UITableView and UITableViewCell work, and one part of that is touch handling. So when I touch a row on a table view, what exactly happens? My basic understanding is: UITableView is a UIScrollView, so first it checks if it's a touch or a scroll If it's not a scroll then the touch gets analyzed to see...

What might cause half of an NSData object to stay in memory after releasing it?

I'm loading a series of images from a server into NSData objects like so: for (int i = 0; i < 36; i++) { NSURL *url = [NSURL URLWithString:@"http://12.34.56.78/image.jpg"]; NSData *data = [NSData dataWithContentsOfURL:url]; // Further processing here } The problem is that half of each data object is being kept in memory. This d...

iPhone SDK Quick Reference

Is there a quick-reference guide to the iPhone SDK that's as fast and easy to use as one of those little O'Reilly books, or JavaDoc? I'm new to iPhone SDK programming. I need reference material. Let's say I want to know if the string class has a "reverse" function. For Java I go to http://java.sun.com/javase/6/docs/api/ and browse do...

How to position this view relative to another?

Think about a speedometer, and imagine all these little strokes around it like 10 mph, 20 mph, 30 mph, and so on. I try to draw something similar. Imagine this: There are three views: A, B, C. A owns B owns C. C is a stroke on that speedometer. So to create it easily, there is view B inbetween which is exactly same size of A. First, ...

iPhone. How to Track Progress of HTTP Upload

Hi, could you please advice how to track progress of file upload to HTTP Server? I am using NSURLConnection and other classes to solve the task of file upload. But I cann't find out how to track upload progress. Thanks. ...

iPhone UIScrollview: Button does not respond when located below 480 pixels on Scroll View's child UIView.

I have built a view for an iPhone app in Interface Builder. It is a UIScrollview with a UIView and a UIButton on the UIView. The only code I have is setting the scroll view's contentSize to 320x550 in the viewDidLoad method of the xib's File Owner class. When the button is within the normal view area (320x480) the button responds as norm...

Where can I find documentation for TouchXML?

I would really like to see some (complete) reference documentation for all TouchXML classes, methods, etc. Where can I find it? Thanks! ...

Adding Objects to an Objective C Array at Index

I have a synthesized NSMutableArray - theResultArray . I want to insert NSNumber or NSInteger objects at specific indexes (0-49). For some reason I can never get any values to stick in my array. Every index returns nil or 0. NSInteger timeNum = time; [theResultArray insertObject:[NSNumber numberWithInt:timeNum] atIndex:rightIn...

Indexpath.row value not updating

in iphone application. I'm trying to get indexPath.row value (out of didselectedrowatindexpath method) to do something on the basis of row selected in programmatically created tableview. i need to access indexpath.row out of didselectedrowatindexpath method where if/else will define the action on the basis of indexpath.row. there are ...