iphone

warnings in iphone sdk

i'm getting this two messages: warning: 'MainView' may not respond to '-switchToNoGridView' Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments 1st here: //GridView.m #import "GridView.h" #import "MainView.h" @implementation GridView -(IBAction)switchToNoGridView { [mainView...

iPhone 3.0 plist file ?

Hello, In the iPhone Mobilephone app. there are some files like, "Moblie Phone" "Managed Package Artwork" "Package Info" that are not plist files, and cannot be converted with xml. Is there some other method of converting these files so as to make them readable and modifiable? Thank you Trying to modify the Mobile Phone app proper...

Pushing a ABUnknownPersonViewController onto a navigation controller results in having no Navigation Bar - Any ideas?

Hi There, I'm working with the Address Book UI API on iPhone SDK 3.0. I want to present to the user the ability to create a new user, or add to an existing one, so I am using the ABUnknownPersonViewController. I have an existing navigation stack (with only 2 other views on it). Trouble is when I push the ABUnknownPersonViewController ...

access an integer and string globally in iphone?

i want to access a integer and a string from a class to all the other classes? what is the best way to do it? i want to increase the values any where in the program and then want to update them in the class declared.... any idea how to achieve this??? ...

iPhone - flipping views shows a white background

Hi I am using the flip animation to animate between two views in my viewcontroller. The problem is that the background shows a white blank background while the animation is taking place. I would like to show a black background. I tried setting the background color of the main view to black both in IB and code. But the background is sti...

Objective C Warning: passing argument 1 of 'touchesForView:' from distinct Objective-C type

I'm using some code from here to determine when determining when the last finger in a multi-touch sequence has lifted. Here's the code: /* Determining when the last finger in a multi-touch sequence has lifted When you want to know when the last finger in a multi-touch sequence is lifted from a view, compare the number of UITouch object...

Creating an mailto: URL with a URL in the body iPhone SDK

UPDATE: I just found a similar post here: http://stackoverflow.com/questions/730101/how-do-i-encode-in-a-url-in-an-html-attribute-value Please consider the code below: I try to send an email message from within my iPhone app. The problem I encounter is that I want to put a URL in the body of the email. This URL contains two ampersands. ...

Need to show only Weekday with Date UIDatePicker in iPhone

Hi is there any way to show only weekday with Date as: MON 03-JUL in UIDatePicker in iPhone. Please help. ...

openGL ES textures from PNGs with transparency are being rendered with weird artifacts and driving me nuts!

Hello everybody! I am beginning to work on my first OpenGL iPhone app, but I've hit an early snag. I have a VERY SIMPLE little texture that I want to use as a sprite in a 2D game, but it renders with weird 'randomly' colored pixels up top. http://i40.tinypic.com/2s7c9ro.png <-- Screenshot here I sort of get the feeling that this is P...

loadview ONLY when I get my GPS location.

I have been stuck on this for days, and was wondering if anyone had any clues? Should be simple, but it has me stuck! I get my location, then continue. But I want to stay IN THAT METHOD - LOOPING - until I get a valid location. Then loadview. THANKS for any tips! I am using the standard: - (id)init { if (self = [super init]) {...

What is behind the appearance of iPhone developer frustration?

I see lots of unhappiness in the iPhone dev forums (and elsewhere) regarding Apple's treatment of developers. Common complaints include App reviews that take weeks or months, only to be rejected without detailed explanation. Updates that take even longer for review than the original app. A number of developers have taken to filing b...

Calling StreetView in IPhone Maps App from External Application

I'm trying to make an external call to the google maps application on the iphone from my application and send it straight to "streetview" mode from two lat, lon coordinates. I've tried a variety of combinations, but each one just sends me to the safari browser on the iPhone and not to the maps application. Here is one of those tries: ...

How to disable multitouch?

My app has several buttons which trigger different events. The user should NOT be able to hold down several buttons. Anyhow, holding down several buttons crashes the app. And so, I'm trying to disable multi-touch in my app. I've unchecked 'Multiple Touch' in all the xib files, and as far as I can work out, the properties 'multipleTouch...

iphone: creating image without allocating new memory

the pointer data if pointing to some image generated by an iphone application. Does anybody now if using CGBitmapContextCreate make a copy of this data or does it use the image "in place"? Ideally, I'd like to reuse the information in data* and not create any additional copy of this image. void* data = <my data>; CGColorSpaceRef color...

Sound format for iPhone app

What kind of audio files are you using in your iPhone games/apps? I have a game with 30MB of sounds in .wav format and I'm thinking of maybe converting to .mp3 to reduce the app size... Is there a major difference in performance? Any other issues? ...

Detect if one position in Array is already initiated

I need to check specific positions in an NSArray to see if they have already been initialized, but I am having trouble. I tried to do the following, but it causes my application to crash! if ((NSMutableArray *)[arrAllBlocks objectAtIndex:iLine] == nil) { [arrAllBlocks insertObject:[[NSMutableArray alloc] init] atIndex:iLine]; } NS...

Scroll UITableView so that the header isn't visible

I've got a UITableView with a UISearchBar as the tableViews.tableHeaderView. Just like the new Mail.app, Notes.app, etc. in 3.0. I want to hide the SearchBar until the user drags it in his sight. My attempt only works when there're a couple of items in the tableView, so that the tableView actually wants to scroll. I call this in loadVie...

How can I test Apple Push Notification Service without an iPhone?

Is it possible test the Apple Push Notification Services without an iPhone application? (Creating an emulator on windows?) If isn't, how could I test that? Is there a free sample application compiled to do that? I created the Server provider, but I need test the functionallity. ...

How can I place a cross-browser button within (on top) of an text input?

I'd like to create a text input with a clear button in a confined space. Like the iPhone, I want to place the button (a small x image) 'inside' the input at the far right so that a user can just click that to clear the value, instead of having to waste space beside the input. Right now I'm using a background image on the input and an in...

how to play an audio file and the video file in iphone/ipod?

hi all i want to play an audio file with a video file in which video file don't have sound just have a video, we are playing both file simultaneously. we have to use the two differently file(audio & video) for it. so how can we do it? Thanks for any help pankaj chauhan ...