iphone-sdk-3.0

iPhone SDK 3 EXC_BAD_ACCESS with openldap library

Hello, Hope someone can help me, I am trying to build openldap for an app on my iPhoneOS3 but when I try to use something from the library I get this error : Program received signal: “EXC_ BAD_ACCESS”. I followed this website to compile openldap with iphone gcc. So I built openldap with this : export DEVROOT=/Developer/P...

iPhone 3GS Simulator

I want to test the Voice Control feature of iPhone 3GS through the simulator. But I don't seem to get the simulator for 3GS. Where can I get one..? ...

Image in UIScrollView moves offscreen before while zooming

I am working on a photo gallery iPhone app. Approach is fairly inspired from the ScrollingMadness code available on github. I have a scroll view which holds all my image views when in paging mode. When user zooms an image using pinch out gesture, I remove all the image views but the current one - and set the content offset to 0,0 (obvi...

How to get averagePowerForChannel for playing MPMusicPlayerController?

As I programmatically play a song from my iPod library, I'd like to be able to display a decibel gauge. Unfortunately, AVAudioPlayer's power methods aren't available for MPMusicPlayer. Any ideas? ...

Address Book picker memory usage mystery in iPhone 3.0 project

Hello, I am getting email addresses out of the Address Book from a Cocoa Touch project and getting some unexpected results in terms of memory usage. The user opens the ABPeoplePicker and if the AB entry they touch has a single email address or no email address it uses (BOOL) peoplePickerNavigationController:(ABPeoplePickerNavigation...

UITableView and a UITextField that is always visible

Hi all! I want to create an application which combines a chat feature. My question is this: how can I have a UITextField that is always visible in the same view as a UITableView? The obvious solution would be to create my own UIView having a UITableView and a UITextField below it, however the UITableViewController doesn't seem to like...

Displaying a "Loading..." screen in a UITableView like the AppStore App...

the App Store app and fairly a lot many apps display a view that says "Loading.." while the content is being retrieved. How can we do this? Should I remove the UITableView and call addSubView and then once the data is available, add the tableview back? Or is there any other shortcut? If my question is not clear, please see this image.....

How to make the search bar staying always on top using UISearchDisplayController in iPhone SDK 3.0

The iPhone SDK 3.0 has this handy new class "UISearchDisplayController" which makes it easy to create a search bar, handling all the user input and displaying the search results. I am using it for my new app, but there is one thing i would like to change: As a default, the search bar should be put at the top of the UITableView that dis...

How to set iPhone Wallpaper Programmatically

Hi all, I am developing an application in which I have to set image as the iPhone wallpaper (the background image on the "slide to unlock" screen). Do we have any API reference for this. Please help Thanks in advance Parmeswar ...

i am trying to add cells dynamically

I am trying to add cell to a table view dynamically I have a textfield and a button so far i can add a field statically. this is my code for that (void)viewDidLoad { [super viewDidLoad]; tableList = [[NSMutableArray alloc] init]; [tableList addObject:@"Kevin"]; [tableList addObject:@"Carlo"]; [self setTitle:@"The Alcoholics"...

Taking the highlight off of Icons

When programming and looking at all different apps I have realized that some apps in the app store don't have the lit highlight on the top, making it look more 3D. I have an app idea but I need to take the highlight off. The app have been programmed in Xcode, so if anyone answers, that would be great. Thanks! ...

A word-wrapping text field with an image background on the iPhone?

Hi there! Does anyone know how to create a text field that has a UIImage background and does word-wrapping? It appears that word-wrapping is not available on UITextField, while a background image is not available for UITextView! Also, it should change the size of the control or at least alert that the number of lines changed so that a ...

iPod touches cannot find each other through GameKit

I have two physical iPod touch devices. If I try running a program that uses a GKPeerPickerController to find another iPod touch running the same program, they just stay at the peer picker screen without any progress. Both have bluetooth enabled. I have tried my own program, along with Apple's GKTank sample app. Neither of the iPods ...

presentModalViewController for UIImagePicker fails in landscape mode for iPhone 3.0

First of all, my code isn't complex - in fact it's just two sample programs from "Beginning iPhone Development: Exploring the iPhone SDK", combined into one program. I took the ViewSwitcher application, which switches between a blue view and a yellow view, and replaced the YellowViewController with the CameraViewController from the camer...

different entity types in a single fetchedResultsController?

I have a UITableView which displays two different entity types -- each row could be either EntityA or EntityB. cellForRowAtIndexPath looks at the class type and determines how to create the cell. I am persisting my objects using Core Data and would like to use a fetchedResultsController to manage this tableview because of the memory-man...

Trying to order built-in UIAnimations, not having much success

OK, I have a screen in my iPhone app that looks like the following: When the Add Notes cell is touched, I would like for the keyboard to disappear, THEN I would like it to modally display the Edit Notes Screen (which also has a keyboard, but I would like for it to animate back on screen). Right now it animates everything at once (the ...

How to resolve "Command <com.apple.tools.product-pkg-utility> failed with exit code -1" error when compiling iPhone App for Device - 3.0 | Release build

I recently installed the iPhone OS 3.0 upgrade on my iMac for developing iPhone Apps in XCode. The App I've been developing started throwing errors when I would try and compile for 3.0 (previously worked in 2.2.1). I fixed all of the errors I could, but I am consistently getting the following error: Command <com.apple.tools.product-pkg-...

What to use in place of a deprecated UIImagePickerControllerDelegate method?

I followed a great tutorial (http://iphone.zcentric.com/2008/08/28/using-a-uiimagepickercontroller/) on using a UIImagePickerController to get images from the Photo Album or Camera on the iPhone. The problem is, the tutorial is a bit dated and documentation cites a method used by the delegate as being depreciated since 3.0. The problem i...

how to draw a maze using openGL for iphone development?

Hi, I was wondering if anyone can get me started on how to build like a maze using openGL. Would i need to write code to draw the maze or is it like painting a picture in a separate window? would i need to create a game engine to start with this? I'm doing this for iphone development so any suggestions for that would be a great start for...

Which version of the iPhone 3.0 SDK should I download?

In the developer center there are two different downloads: iPhone SDK 3.0 (Snow Leopard) iPhone SDK 3.0 (Leopard) I have Mac OS X 1.5.7, which I believe is Leopard. But when I download the one for Leopard it tells me it can't "mount" it. When I download the one for Snow Leopard, it downloads and installs fine... However, once I'm usi...