iphone-sdk-3.0

My iphone app gets stuck!

After a login screen which sends the username/password to a webservice and gets back a response of either true(which is supposed to start the rest of the app) or false(incorrect username/password or unauthorized). The app gives the alert view that you are authenticated but it doesnt load the rest of the view? Can anyone please help me??...

GameKit and GKPeerPicker on 1st Gen iPhone and iPod Touch

This is my current set up for my multiplayer game: A view that gives connection tips and warns the user that multiplayer will not work on the 1st Gen iPhone or ipod Touch. There is a "connect" button that pushes the game view and starts the GKPeerPicker. Unfortunately, I don't have a 1st Gen iPhone or iPod Touch to test what happens...

Send outline as email using MFMailComposeViewController

I'd like to send a text outline via email using MFMailComposeViewController. I'm currently doing this by creating a HTML version of the document and setting this as the body of the message.This works fine when viewing the email in MFMailComposeViewController, but on the receiving end (MobileMail.app, GMail Webinterface, OSX Mail.app) the...

MKMapView returns the wrong latitudeDelta and longitudeDelta in regionDidChangeAnimated

I'm attempting to talk to a web service for locations within the zoomed-in or zoomed-out area on an embedded MKMapView. In the regionDidChangeAnimated method of my view controller (this is the method that I use to trap any user gesture on the map), I call the following: NSLog( @"latitude delta = %f", mapView.region.span.latitudeDelta );...

No stringWithContentsofURL method found

I'm following this tutorial, attempting to learn a bit about iPhone development, and there come a point where the author uses the stringWithContentsofURL method but xcode is telling me that there is no stringWithContentsofURL method found. I've done some searching and I've not been able to come up with a solution. This is a screen shot...

Problem compiling a simple test project for the iPhone.

I am new to iphone development. I have this code in the delegate.h section: #import <UIKit/UIKit.h> #import <objc/Object.h> @class Learning1ViewController; @interface Greeter: NSObject<UIApplicationDelegate> { } -(void)greet; @end #include <stdio.h> @implementation Greeter -(void) greet { printf ("Hello, World!\n"); } #includ...

resignFirstResponder not dismissing ASCII keyboard for UITextField

I have a UIViewController with 4 UITextFields, 3 of them use the NumberPad and 1 uses an ASCII keyboard. I can't get the ASCII keyboard to dismiss when the user touches a background button outside the text field. The background button works fine to dismiss the NumberPads but doesn't dismiss the ASCII keyboard. Yes, the ASCII keyboar...

UITableView doesn't reuse cells?

Good morning all. I'm having a small crisis with table views in a 3.1 app. I have a table view with some complex tableViewCells being loaded from a nib, and they're not being reused. Feeling it might have something to do with loading them from a nib, I decided to try a simple test project to see if cells are being reused using nothing...

Query related to cell selection for iPhone SDK 3.0

I used to have the following snippet of code in viewWillAppear method of a tableviewcontroller. What it essentially did was to start with the first row selected when the view was loaded. // Select the first row by default and set the datePicker NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tableView se...

Custom Drawing of Alpha Images

Hello, I am trying to do custom drawing of an image(with alpha) and eventually going to apply different color tints to it. Right now I am just trying to draw it correctly. This might be simple problem but the result is the ALPHA on my image is black. Image is .png created from photoshop with correct alpha. - (void) drawRect:(CGRect)area...

Frame load interrupted error while loading a word document in UIWebView

I want to load a word document using UIWebView. I used the code provided in http://developer.apple.com/iphone/library/qa/qa2008/qa1630.html to load the document. But not all the documents load successfully. Sometimes I get an error Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted" The error seems to ...

Iphone app text badge length

I'm trying to put a text badge on my Iphone app with the undocumented setApplicationBadgeString method. The problem I'm having is getting the number of characters right. Sometimes I can fit characters, sometimes it replaces part of my string with dots. I've seen the same behaviour on UILabel too, if the text doesn't fit, it gets cut off...

IPHONE: How to build and use and array of special constants?

Hi, I am working with CGLayers, and its blend mode constants, as kCGBlendModeDifference, kCGBlendModeHardLight, kCGBlendModeLuminosity, etc. I would like to build an array out of these constants and use them by index, in an instruction like CGContextSetBlendMode(context, [myArrayOfBlendModes objectAtIndex:x]); but I have two probl...

iPhone Feedback Service with PHP

HI All, Has anybody been able to extract the device tokens from the binary data that iPhone APNS feedback service returns using PHP? I am looking for something similar to what is been implementented using python here http://www.google.com/codesearch/p?hl=en&amp;sa=N&amp;cd=2&amp;ct=rc#m5eOMDWiKUs/APNSWrapper/%5F%5Finit%5F%5F.py&amp;q=f...

My app closes without any warning or error message.

Hi. I'm programming an puzzle game for iPhone using openGL. There Is one very weird "bug" ( I'm not sure what It is)... whenever I touch the screen a great number of times in a short period of time my app closes, without giving a warning or error. What could be the cause ?, I guess It has something to do with the memory, but I would...

Excel Sheet to iPhone Data -- Point A to Point B

As simple as possible: I have a very simple Excel spreadsheet with just over 1k records. I want to use this as a static datasource for an iPhone application. What's the best plan of attack? Possibilities in my mind: 1) Reading the XLS directly as a data source: is there an Obj-C lib for this? 2) Converting the XLS to a format that Ob...

+requestAdWithDelegate: crashing because I'm in GSEventReceiveRunLoopMode?

This crashes (but without outputting any info to the Debugger; no dump, no trace): adMobAd = [AdMobView requestAdWithDelegate:self]; // start a new ad request [adMobAd retain]; // this will be released when it loads (or fails to load) I thought it was because my code isn't executing in NSDefaultRunLoopMode, which AdMob says is require...

Why is my app dying after invoking popToRootViewControllerAnimated?

After I call [self.navigationController popToRootViewControllerAnimated:YES]; I can see in the root view controller that viewWillAppear enters and exits. Then I see a message on the console that reads *** -[CFString release]: message sent to deallocated instance 0x4a9eab0 And then my app abruptly terminates. I don't think it's in...

Impossible to post-produce the image from the iPhone camera?

On an iPhone 3GS, the image captured by the camera has 2048x1536 pixels. If my math is correct, opening this image on a CGLayer will consume 12.5 MB. Springboard will terminate any application that reaches beyond 12 mb (at least this is what happens to me). Manipulating this image with a function like CGContextDrawLayer will consume an...

Same or nerly same latitude and longitude for two different pins on MKMapView of iphone

Hi! i recently faced a interesting issue in creating a app on iphone with a map view. the data provided to me have have some items having same or nearly same lat and lng. So while plotting them either they overlap or are so close that i have to zoom to a greater extend to click on them. i check all the apps with map on them and found a...