ios

How to add a push pin to a MKMapView(IOS) when touching?

Hello, I had to get the coordonate of a point where the user touch on a MKMapView. I'm not work with the Interface Builder. Can you give me one example or a link. Thanks a lot ...

Error running google tool kit for mac unit test

I am trying to install google toolkit for mac, everything is setup as advised here : http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting but when I try to compile I get this error Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle ...

Ternary Raster Operations in Mac OS X and/or iOS?

I am looking to implement a mechanism that combines bitmaps together in a variety of complex ways, using ternary raster operations like you can in Windows. The idea is to be able to blt an image to a destination using any kind of combination of the source, brush, and destination pixels (source AND destination, source AND brush AND desti...

Is the a way to turn off the UITableView delegates temporarily?

I have a UITableView with the usual table view delegates. The problem is that the table is built from core data .. so when my refresh method runs it refills the core data entities. I think this means that the data for the table is unstable, and hence it crashes on a line like this (in 'cellForRowAtIndexPath'): cell.textLabel.text = [obj...

Can I run XCode for iOS development in plain leopard?

I am aware that I cannot actually distribute an app that is not compile with the latest version, but I cannot upgrade my Mac now for some driver compatibility issue. So, for the time being, is there any way to do actaully code and test an iphone app in plain old leopard? I cannot find what I need to download in the dev center. Thank yo...

UISplitViewController shouldAutorotateToInterfaceOrientation

I'm using a UISplitViewController and when I launch the simulator, I get the following error: "The view controller returned NO from -shouldAutorotateToInterfaceOrientation: for all interface orientations. It should support at least one orientation." Any ideas on why I am getting this? (I am not subclassing the splitview controller). ...

using variables for unit testing only

I am writing unit tests for an app for iPhone using objective c. I want to use some variable only when compiling for test case for example #ifdef UNIT_TESTING @synthesize requestFinished, networkAvailable;//etc #endif now where should I define UNIT_TESTING that when I compile for unit tests it should enter this code block.... otherwi...

Running activity indicator NOW

I want to start an activity indicator before going to disk I/O. How do I start the indicator NOW, instead of waiting for the next display loop cycle? Or how do I force the display loop before beginning the disk I/O? Dan ...

iOs -- require open gl es 2 for upgrade?

The first version of my app runs on all iOs devices. I'm considering releasing an upgrade which will only work on devices which support opengl es 2. Is that as simple as changing the UIRequiredDeviceCapabilities in info.plist? If I do this, what will users on the old device see when they try to upgrade? Or will they even be notified that...

how does I t-pain? (real time audio on iOS)

I was hoping to make an application that did real time voice manipulation like the the T-Pain App. But AVAudioRecorder only enables a post processing from of audio manipulation. Is there another API that will enable real-time audio processing? thanks! ...

Detecting when you're in/out of the main thread in Monotouch

Is there a way in iOS / Monotouch to detect whether code is being called in the main thread? I'm looking for something like the equivalent of Java's EventQueue.isEventDispatchThread() -- I've found in Swing programming it's handy to assert that from time to time (or sometimes to assert that it's not) -- making sure that models are consi...

iOS Design: Using the delegate pattern in a library

I have a library project that uses ASIHTTPRequest to make URL requests and parse the responses. The library will be used by a separate iPhone app project. If my iPhone controller code responds to a touch event, then calls into the library to make URL requests, how do I best perform the requests asynchronously? In the library, if I use ...

Error compiling for unit test using google toolbox for mac

Hi my application runs fine but when I try to run the unit tests I am getting this error... 2010-10-19 00:27:49.919 AssignmentUnitTest[27988:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter' Irony is I have searched the whole project & I ...

Definitive answer to what playersToInvite is for.

The Game Center documentation indicates that the playersToInvite parameter is non-nil when your application is launched directly from the Game Center application to host a match. A few people have asked how this works exactly, i.e. there doesn't appear to be a way to select a friend from the Game Center application and invit...

iOS: Performance of UIView animations vs CABasic/CAKeyframe animations.

Is there a difference in the performance of UIView animation vs CA Animation blocks? I understand they are all interfaces to Core Animation, but am looking to squeeze the most performance vs resources per animation. Thanks. ...

SSL Wrapper around iphone's app

hello, I have an app that connects to an inhouse gameserver. I want to wrap the traffic in SSL to prevent hackers from sniffing the passwords and what not. Anyways, how do I go about doing that with an iphone app? I'm using CFNetwork to communicate to the server, and everything is in our own inhouse protocol instead of using http or some...

Any 3rd party video playback libraries for iOS that allow simulations streaming playback & write to disk?

I'm looking for a better playback solution for streaming video in iOS, preferably one that allows you to stream video from a url AND save the bits to disk. Currently using quicktime on iOS, if you playback a video from a URL you can't save anything to disk, you have to stream the url every time. Thanks. ...

What Techniques Are Best To Live Stream iPhone Video Camera Data To a Computer?

I would like to stream video from an iPhone camera to an app running on a Mac. Think sorta like video chat but only one way, from the device to a receiver app (and it's not video chat). My basic understanding so far: You can use AVFoundation to get 'live' video camera data without saving to a file but it is uncompressed data and thus...

issue about subview retain superview in objective-C

Hi, here's a problem with memory management issue. Say i have a view A, it has a pointer that points to its subview B. I use @property(nonatomic, retain) refer to the view B. Now in subview B, i need a pointer to point back to its superview A. So i use another @property(nonatomic, retain) refer to its superview A. Here's my concern, i...

How to reuse UIViews, the way UITableView does?

I want to create a view that shows vast amounts of data. Using UITableView would have been a good idea except it's not the way/style I want to show it. I'm thinking of creating my own view, and I was wondering: UITableViewCell is constantly being reused through the dequeueReusableCellWithIdentifier method; how does this work? I mean, I c...