iphone

Limit to 10 number of annotations in mapkit!

Hi, I have all my annotations(as nsdictionnaries) in an array , and the users add them one by one by tapping on an icon. I want to make it impossible to add more annotations after adding 10 annotations (there is 110). Is it here i have to make something?: -(IBAction) plusButtonTapped: (id) sender { NSDictionary *poiDict = [poiArray ob...

Copying files VS not copying files ?

Hey guys, Can someone explain to me what is the difference between ticking "copy items into destination..." and not ticking this option ? Thank you. Gotye. ...

Image animation over CGContextDrawPDFPage

I'm modifying the QuartzDemo sample app from Apple. In QuartzViewController.m I have modifications (by DyingCactus) which replac the back button and add a method to handle the back button press as follows: -(void)viewDidLoad { // Add the QuartzView [scrollView addSubview:self.quartzView]; //add custom back button if this i...

iPhone tilt direction

Hi all, I am making a simple, tilt controlled game using UIKit. So far, when I tilt the device the character moves in the appropriate direction. What I want him to do is to change the direction he is facing when I tilt the device. For example, when I tilt it left, I want the character to face left. Is there a way to detect whether th...

link to iPad app in appstore from an iPhone version

Hi, I can't seem to get this to work. I can link to other iphone apps in appstore and they will take the user to the appstore. But iPad links do not seem to work? Has anyone managed to get a working link to an iPad app in appstore? ...

How to globally customize the back button?

Hi there, is there a simple way (Delegation? Overwriting?) do globally customize all the back buttons that are being used in the navigationBar throughout my whole app? Best –f ...

How to programmatically alter object created in IB

Hello, I've placed an image in my UIView with IB. How do I move this image around, resize it, etc programmatically? I cannot figure out how to reference it from my code. Thanks a zillion. ...

What are the benefits/consequences of compiling an armv7 only architecture?

In compiling iPhone apps, there is a setting for "Optimized" architecture (armv7 only) vs a standard armv6/armv7 architecture. What are the benefits/consequences of compiling an armv7 only architecture? ...

How do I sync recorded voice to animation on the iPhone

I want to record voice and sync that up with animation on the iphone as a user touches the screen. Are there apis that will help me accomplish this? I've not done anything like this so I"m having a hard time visualizing the type of algorithm that would help me accomplish this. ...

How to autoresize a view controller so that it's view starts below the status bar?

I have a UIViewController which creates it's own view. It's a fullscreen image at 320 x 460 size. But for some reason that image seems to be placed below the status bar. I guess I could set some autoresize mask, so that this view is automatically placed below the status bar? (I mean not exactly below, but 20px down... so not covered...)....

UIGraphicsGetCurrentContext threading problem

Hello guys! The reference says this: "You should call this function from the main thread of your application only." But I would like to get the current graphics context from separate threads. What do you think? What can I do to reach this? Edit: Thanks guys for the answers. I don't know which is good for me at the moment, but thank y...

Best point to overwrite the navigationBar property of navigationController

Hi there, I'm overwriting UINavigationController to replace the default navigationBar property with an instance of my own subclass of UINavigationBar. So I tried something like _navigationBar = [[SBNavigationBar alloc] init]; in my -initWithRootViewController:. But that didn't work out as I expected it. There's still the default navi...

GKTank example is not working.

Hello, I'm trying to get the GKTank example working with 2 iPhones. Both have bluetooth enabled. I start the app on both devices and tap the screen. The Peer Picker comes up and the devices find each other. If I select one device in the list it says "Waiting for {other iPhone}..." forever. On the {other iPhone} the waiting phone gets gra...

Is NSNumberFormatter the only way to format an NSDecimalNumber?

I'm using an NSDecimalNumber to store money in Core Data. I naively used stringWithFormat: at first to format the value, later realizing that it didn't support NSDecimalNumber and was instead formatting the pointer :(. So after some reading through the docs I learned to use the NSNumberFormatter to get the format I wanted. But this just ...

iPhone Mobile Safari, How many max parallel http connections?

I would like to use parallel AJAX HTTP requests with iPhone Mobile Safari (OS4). What is the max number of parallel connections? ...

How to take NavigationBar's height into consideration when adjust text field views?

I have a view with UINavigationBar on top. The view contains several text fields. Based on a tip to adjust UITextFieldView's position to the top of the view, I did some adjustment. However, my view has a navigation bar on top. How can I take the navigation bar's height into consideration to adjust my text view's position? ...

iPhone OS 4.0 backwards compatible with 3.1/.2

Title says it all. I'm building an iPhone application with a base SDK target of 3.1.x. I've got a friend who offered to test it on the OS 4.0 beta, but I'm wondering in advance if I should bother. Will my application run under 4.0 or is it not backwards compatible? I have to imagine it will since apps built for 2.x run on 3.x just fine A...

asyncsocket Write Issue

I am attempting to use asyncsocket to communicate GPS data from a server app on my iPhone to a client app on my macbook. The two devices connect without any problems, and when the first data is sent from the iPhone to the laptop in asyncsocket's didConnectToHost method, the data is sent without hiccup. When I subsequently try to write ...

Chipmunk physics: Velocity question

I'm making an iPhone game where the main actor is a ball that rolls depending on the device's accelerometer rotation. I haven't started on this part of the coding yet, but I was wondering if you guys had a nice way of solving this: I tried looking a little into chipmunk, and I noticed that bodies have the property v, which is a point c...

how secure is NSURLConnection over https

I've been reading through a number of questions on this site regarding NSURLConnection and https, but most relate to "untrusted" certificates and how to allow them nonetheless. My question is a little more basic. I am building an app for a client who handle online donations, and I would like to load their donation script using an NSLURLR...