ios

How to test iPhone app on iOS 3.1.3?

I have an iPhone app which I need to test in an older version of iOS. In the iPhone Simulator, under the Hardware->Version menu, there are the options 3.2 and 4.0. Is it possible to test the app on an older version of the iOS? If so, how do I make it happen? ...

One iPhone client, many IP addresses?

My iPhone app accesses a server through a REST-ish API. I use sessions that are linked to the client's IP address in order to help prevent session hijacking. But I've noticed some strange sequences of requests in my server logs from certain client devices. What happens is different URLs on my server are being requested by the same cli...

Example of using UDP in obj-c/C++?

Hey, I'm making an iOS app - real-time game, wanna use UDP protocol. I'm searching a lot for examples/guides, but can't find any. Also, the software on the server will use C++, and I've searched a lot and can't fina a nice way to use it, for begginers in C++... I found that: http://developer.apple.com/mac/library/samplecode/PictureShar...

iOS: How to make a secure HTTPS connection to pass credentials?

I am creating my first iPad app. I have a web application that I would like to authenticate against and pull data from in a RESTful way. If you open up the URL in the browser (https://myapp.com/auth/login), you will get a form to enter your username and password. I was thinking I could set the login credentials in the post data of the r...

Connecting iPhone to an ODBC Database

Hi, I'm new to iOS development. I have to make an application that connects to a Sybase database. My bet would be to use ODBC. Does anyone know how to connect to an ODBC enabled database from within objective C. I've encountered applications that can do this but I don't seem to find any specific iOS related documentation or source code...

How to create similar interface like the Photo application in iPhone?

How do I start an application which has a similar interface like the Photo application that ships with the iPhone? Specifically an interface with a UITabBarController and UINavigationController both present in the view. ...

APNS Send notifications from multiple servers

I am writing an iOS application which will be sent notifications over APNS from backend servers. Can I configure multiple servers to connect to APNS and send notifications? If so, is there a limit on the number of servers which can send notifications for a single application? I can't find any details about this on the Apple site (e.g...

Why some methods are required in delegates?

Hi, I'm very curious - why does UITextInputDelegate have all its methods required? Why can't I just implement the one I want (for example textDidChange)? ...

How to tint a transparent PNG image in iPhone?

I know it's possible to tint a rectangular image by drawing a CGContextFillRect over it and setting the blend mode. However, I can't figure out how to do a tint on a transparent image such as an icon. It must be possible since the SDK does it itself on tab-bars in such. Would anyone be able to provide a snippet? ...

Accessory View out of visible range of UITableViewCell

I create custom UITableViewCell and just put the Accessory Type to Disclosure Button cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; But the half Accessory is out of the View on the right border of the screen. Sadly, but I can not post a screenshot because I need 10 posts to do that. I searched everywhere but I d...

Memory footprint benefits of using CoreData vs in-memory not evident/obvious - opinions?

I have an app that currently holds all state in memory. It fetches a bunch of information from a server as JSON and then holds on to the JSON values in memory. Each JSONObject can be ~300 bytes and there can be thousands of such objects. I use this data simply to populate UITableViews. In order to better handle large amounts of aata, I ...

Multiple Copies of XCode - Testing code against older versions of iPhone SDK

I am interested in testing my current iPhone app against an older version of the SDK (3.1.3). I know that I can compile my code to run on this version of the SDK, but I want to test it to make sure it still works since I am using newer APIs and using weak linking so that it will continue to work on older iOS versions. Ever since upgraded...

Equivalent of [[NSWorkspace sharedWorkspace] runningApplications] for iphone / iOS?

I've been poring through Apple documentation for some time now but haven't found an iOS equivalent of the sharedWorkspace object that one can get from NSWorkspace in AppKit. Basically, I just want the runningApplications method from it. Can anyone point me in the right direction? ...

How should I manage my NSTimer in a tabbar iPhone app?

I have a tabbar-based app with three tabs, one of them is a running clock. To animate the clock UI, I use an NSTimer that fires once a second. If the user will be switching in and out of the various tabs, how should I manage this timer? Can I just use scheduledTimerWithTimeInterval to create and schedule the timer when the app is fi...

Core data, managed objects and multiple table view controllers

I have a UITabBarController with two tabs.  Each tab has a UINavigationController and each nav controller has a table view.  The first tab lets you see and edit a list of all employees.  The second tab lets you see a subset of the employees.   My problem is that in the first tab you can delete an employee from core data.  However, when y...

Can I draw on an existing CGImage directly?

I want to draw on an existing image to achieve the accumulation effect. Currently, the only way I found is: UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); ... // draw the existing image // draw other things ... UIImage *color = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImage...

Xcode fails to get the task for process XXX. How do I solve this? (iPhone SDK 4.0)

Hi, I have the following error when I try to run a new project on my ipod: Error launching remote program: failed to get the task for process 312. The program being debugged is not being run. I've read about Entitlements.plist, and I've tried to add the get-task-allow, but then it doesn't let me compile because of a code signing erro...

Trying to understand memory management on the iOS platform

Hello. Here's a block of code that has leaks... NSString *filename = [NSString stringWithFormat:@"%@.png", sketchID]; CGImageRef imageRef = CGBitmapContextCreateImage(paintView.canvas.mBitmapContext); UIImage* image = [[UIImage alloc] initWithCGImage:imageRef]; NSData* imageData = UIImagePNGRepresentation(image); Where are they? In...

Load view from NIB file from several different UIViewControllers

Hello, I have been loading view from Nib files successfully using the approach found on this site [[NSBundle mainBundle] loadNibNamed:@"YourNibName" owner:self options:nil]; The problem is that, because we have to set the File Owner, this nib file becomes "attached" to this view controller. This view is subclass of UITableViewCell an...

USB file transfer on iOS

I want to write an app that stores its data in a file that can be retrieved and transfered to the user's PC. Does the iOS support file transfers over USB (through my app or through a mass storage device type feature). Preferably, I do not want to write a client for the PC to receive the files, and I want to prompt the user about new file...