iphone

I am thinking about buying the magic mouse but can I use it's multitouch capabilities for the iphone simulator

Can you use the magic mouse to use the iphone simulator, and get like more than just two fingers on the phone simulator? ...

Is there any way to determine the velocity of a touch motion

I am making a drawing app and I want to increment my brush size depending on the touches velocity. How would I accomplish this? ...

When to release an object added to an NSMutableDictionary

Hello. I am working on an iPhone app that will construct, at run-time, an NSMutableDictionary for which the values (of the key-value pairs) will be NSMutableArrays. Being somewhat new to the Objective-C, I am concerned that the following will cause a memory leak: - (void) addNewSupplierPhoto:(UIImage*)image toSupplierID:(NSInteger*) sup...

verify in app purchase

I'm builing an iPhone app that should handle subscriptions through In App Purchase. When I get the receipt back from Apple in my app I want to save the receipt on my own server and on my server I also want to verify the receipt with the Apple server. It is very important that this connection to my server is made as this saves information...

XCode iPhone: hiding UIToolbar in parent UIViewController from child UIScrollView

I have a project similar to Apple's PageControl example. I have a UIViewController "PhotoViewController" which contains a UIScrollView and a UIToolbar. The UIScrollView loads another XIB and UIViewController "PhotoScrollViewController". In PhotoScrollViewController, I have a UIButton which displays an image. I have an IBAction on thi...

Coordinates calculation Objective-C

I have the following function that I am so close to cracking but can't find a mod function in obj-c. I hope someone can help suss this. -(void)estimatePosition{ float lat1 = 50.000; float lon1 = -1.666; float d = 500; float tc = 90; float lat; float dlon; float lon; lat =asin(sin(lat1)*cos(d)+cos(lat1)...

How to Start learning to create iphone apps

Well I'd like to create apps for the iphone, starting out with really really basic stuff and working up, but I don't have a Mac at the moment (well I do but it's a powerPC ibook G4, which you can't develop on) and before I invest I'd like to learn how to create apps. I also read an article in a newspaper about how a guy starting creatin...

Change Sprite Anchorpoint without moving it?

Hello, I am trying to change my Sprite anchor point so that I can rotate over a 0.0f,0.0f anchorpoint. At first my object is rotation at the default anchor point (0.5f,0.5f). However later on I need it to rotate over a 0.0,0.0 AnchorPoint. The problem is I cannot change the anchor point and change the position accordingly, so it stays...

Iphone Audio Sound level recording in decibel

I am working on an Iphone app which records the sound pressure level in decibels on the headset speakers of a user. Can anyone guide me how to do this? I am not getting the exact functions to refer to so as to achieve this task. Thanks Ronny ...

iPhone SDK: set animated loading (gear) image to UIBarButtonItem

Is there any way to set an animated image like the Apple spinning gear to an UIBarButtonItem? I have tried this line of code but the animated gif image wont play: myButton.image = [UIImage imageNamed:@"spinningGear.gif"]; Solution found here: How to use a custom UIBarButtonItem to display a UIActivityIndicatorView ...

Parsing SQL file in Objective-C

Does anyone know of an Objective-C library that will easily allow developers to parse a SQL file? I am building an iPhone application that contains a SQLite database and I am attempting to come with a system to upgrade a user's writable database. After reading a lot of the questions and answers on this site it appears that the best way t...

tableView resize problem when pushing another view while keyboard is showing

I have a tableview controller under a navigation controller. Some of my table cells contain text fields, so when I tap on them, a keyboard will show up and automatically resize (shrink) the bounds of my tableview. The bounds is then restored when the keyboard is dismissed programmatically by calling resignFirstResponder on my text field....

getting the values of the text fields in one view controller to the same text fields that were declared in the other view controller

Hi I am new to iphone Development, i am developing an application. I have a question. I have 3 textfields in a view controller and i enter the values in the textfields, i have the same textfields in other view controller and i want these values that i have entered in this view controller to reflect in the other view controller, can i do...

PHP vs .NET JSON web service

My iPhone app communicates with a RESTful service that provides JSON output. I've been generating JSON using mainly PHP. If I use a .NET web service or WCF service, will there be any limitations or differences I should be aware of in regards to JSON as input/output for the service? I'm not sure what to expect from .NET in this regard....

Server Setup for iPhone Push Notifications

Hi all, I'm new to the whole push notifications thing, and was wondering if somebody could walk me through the process of getting a simple application up and running. I currently rent a server that I use to serve my website that runs cPanel X. How would I go about setting up the service? What software do I need to install on the serve...

iPhone Dev - "More" TabBarItem - how to change the title?

Hi, guys! I'm using TabBarController and I have more than 10 View Controllers in it (that's why I can see "More" tab, where I can access the rest of the views). My question is: Is there any way to change the title of the "More" tab bar? (I know how to change the title of the view: tabBarController.moreNavigationController.navigationBar...

Heeelp! Debugger says "out of scope"!

I just cannot imagine what the hell the problem could be. I made a pretty app, and decided to use only CALayers to "render". When I saw that the changes in the position property gets animated, decided to implement a custom getter-setter "abstract" property called tanCenter to set the position without animating. -(void) setTanCenter: (C...

Assembly: convert floatingpointvalue to signed byte

Hi! I currently try to write a program for the VFP unit of the iPhone using ARM assembly code. The VFP can do floatingpoint calculations, but AFAIK no integer arithmetic. However, it can convert a float to a signed integer (4 bytes). Also, according to this quickreference: http://www.voti.nl/hvu/arm/ARMquickref.pdf it seems it does not ...

Core Data - Storing Images (iPhone)

I have an application where I allow the user to add an image for their account. I wish to know how to store an image (obtained from the camera or photo library) using Core Data, as I may offer a backup facility for the user and would be looking to transfer the image data to a server. I have come across the design suggestion of creatin...

Target Membership grayed out ( disabled )

I'm trying to create a new unit test build target for my iphone app. The problem I'm running into is that my source code "group"'s Target Membership options are grayed out. I did delete the original "Classes" folder, and created new "SourceCode" folder with an actual disk structure (thanks xcode). I imported it as a group, not a folde...