iphone

There's got to be an easier way of dealing with arrays!

To optimize a bottleneck, I converted the creation of a large NSArray to a c-style array. (The resulting creation was 1/8 the time of the original NSArray version. Yeah!) But once it's created, speed is no longer an issue, so I'd rather benefit from it being an NSArray again. However, it seems ridiculously involved to convert a c-style...

UITextField and UIPickerView

Is it possible for a UIPickerView to appear instead of a keyboard when a UITextField is selected? Every option in Interface Builder is some sort of keyboard. I suppose I could create a UIPickerView programmatically and create one when the UITextField registers a touchUpInside event, then tell the UITextField to resignFirstResponder, bu...

Looking for Tim Omernick's Fireworks iPhone app

Does anyone have the Fireworks app that Tim Omernick (of ngmoco) posted here: gamemakers.ngmoco.com/post/111712416/stanford-university-and-apple-were-kind-enough-to He originally provided a download link to the source code, but the download link is down and just says "Account Suspended". I am currently working on my own OpenGL ES game ...

Arabic translation for iPhone

What localization prefix do I use for an Arabic translation of the text for an iPhone application? For example for a French translation I use the prefix "fr" which creates a directory "fr.lproj". In actuality the lproj prefixes are the two letter country codes for the country. But there isn't a country for Arabic. So what localizatio...

AudioQueueGetProperty returns out-of-range value for kAudioQueueProperty_CurrentLevelMeter property

I'm writing an application that requires the user be in a quiet environment. To do this, I periodically check the power reading off the microphone. (I'm aware of the returned value being in dBFS or, in this case, a float in the interval [0, 1]. ) My problem is that the below code works just fine... except when it returns 184660647322837...

What topics and exercises would you recommend be covered in an iPhone bootcamp?

I attended an iphone bootcamp in early '08 and have TA'd a few since. I've recently been asked to teach one and I'm curious what YOU would want to be covered. Keep in mind, the class is 3x days (8 hours each day, minus 1hour for lunch) My WIP list currently is: Introduction to the iphone hardware ' ' ' development environment Debugg...

iPhone Accurate Reverse Geolocation

I want to get the most accurate location possible in my app. I have tried in the past (about 2 months ago) and I used to get some quite odd results. Like one time it would get a location pretty accurate (down to a few doors down), then I would try again 5 minutes later in the same spot and I would get somewhere a few kms away. So what I...

Debug Iphone Program received signal: “EXC_BAD_ACCESS”

Hi there, i searched and tried a lot. But i really have no idea how to solve this – Thanks for your help The Error-MSG: Program received signal: “EXC_BAD_ACCESS”. The Line throwing the MSG log(sos_Trace, @"sendMail"); Important I make use of this logging-lib: http://code.google.com/p/soslog-objc/ Full SourceFile #import "Co...

NSFetchedResultsController not updating UITableView's section indexes

I am populating a UITableViewController with an NSFetchedResultsController with results creating sections that populate section headers and a section index. I am using the following method to populate the section index: - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { return [fetchedResultsController_ sectionIn...

Core Data - Getting Unique Rows

I'm working on an iPhone app that uses Core Data. I have only one entity called Books, and that entity has the attributes Title, Author, ISBN, Description and Shelf. I'm working on the book editing view, and want to have a UIPickerView listing all of the unique Shelf rows so that the user can just pick a shelf. My question is -- how d...

External JPG compression library for iPhone?

Does anyone know if any JPEG compression library that produces decent image quality has been ported to the iPhone? The built-in algorithm inside UIImageJPEGRepresentation produces huge files (compared to the quality), which makes uploading images from the phone over the network much slower than necessary. I can compress a JPG compressed ...

Is it possible to bookmark an alternate URL

When a user tries to bookmark one of my pages, I really want it to bookmark a different URL (in my case a tel:// URL -- on the iPhone). Is there a meta tag or something I can use to specify that the browser bookmark an alternate URL? ...

Extract first word from UITextView

In my app I have a UILabel which is the title and a UITextView which is the description and I want the title UILabel to be the first word typed into the UITextView. Does anyone know how to do this? ...

Is there a Mobile 'Web Wrapper' Framework allowing Device Access to a Remote Site?

When I first ran across PhoneGap, I was excited because I envisioned simply dropping in the URL of a mobile site and simply updating the mobile site to use the devices capabilities when available. Alas, it seems it is not that easy. From what I understand (and I could be incorrect), any HTML/JS access to the device's hardware is limi...

download previous iphone sdk

Hi does anyone know where I can download iPhone sdk 2.0 and 2.2.1 . I upgraded to the latest version of the sdk (3.1.2) and it broke my application. In the 3.1.2 installer it gave option to install the 2.2 sdk but it doesn't show up as an option in xcode when I try to execute my app. The earliest version it will show me is 2.2.1 Tha...

changing UIImage in UIImageView in UIScrollView

I have a UIScrollView with a UIImageView subview created in IB. The first time I create a UIImage and set it to be the image in the UIImageView all works fine. If I create a new UIImage and set it to be the image in the UIImageView the image is offset by some (seemingly) random offset. How can I make this work? ...

ABPersonViewController - callback from "Edit" button - objective C

Hi all I am using ABPersonViewController and adding a label on the "Info" view. The thing is: when I click the "Edit" button, since the : personController.allowsEditing = YES; my view goes to the "edit view" and my Label is still there (not as I planed ) I am trying to figure out if I can be "notify" when the user pressed the "Edit" butt...

EXC_BAD_ACCESS error when trying to create an objet of a class in xcode

Hey Folks, I am getting an EXC_BAD_ACCESS error when i am trying to create an instance of a method. UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(40,38,240,203)]; DetailImageViewDataSource *detail=[[DetailImageViewDataSource alloc] init];//**error line** @implementation DetailImageViewDataSource @synthesize webdat...

Interface Builder (iPhone dev) custom button background Image does not respect Stretching settings

I'm attempting to create a custom button using a background image in Interface Builder. The image has stretchable and non-stretchable parts so that it can be resized. IB exposes the Stretching properties to allow for this, yet no values I put in affect how the button appears. It is always fully stretched to fill the size of the frame....

look for open source iPhone camera project

I am looking for some open source projects focusing on iPhone camera, such as image processing &filter when using iPhone camera. Unfortunately, someone said that as far as i know all the video recording apps for the 3g are not open source, require jailbroken phone and also require you to pay after the trial period is up. ...