iphone

Iphone Core Image Filter

Hi All, I'm wondering about that, i have seen into many sites describing that Core Image filters on Iphone doesn't support by Apple. But i have seen Core image filter in Core Animation example page on the Apple developer site. just look at here Iphone OS Refference Library, you will see that example on this page CIFilter *filter = [CI...

Cant set the height of my uitableviewcell right

Hello, I set the size of my UITableCell´s with this: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { NSString * vergleich = [nachricht objectAtIndex:indexPath.row]; CGSize size = [vergleich sizeWithFont:[UIFont fontWithName:@"Helvetica" size:14] constrainedTo...

iphone app GUI programming

hi there, can you use an image (previously created with Photoshop) to design your app ? I mean connecting the psd objects to functions in app etc. ...

How can I write to the current directory in the iPhone SDK when running xcodebuild from the command line?

Hi folks. Does anyone know how to obtain the path to the current directory when running xcodebuild (mainly, the project directory) and write files to it? I'm trying to save the results of some unit tests to disk from my obj-c code, but I'd rather not dump them deep in the app's document path if possible. I might be able to append '../../...

How to replace an invisible UIButton to play different sounds

I'll try and be as precise as possible here! Basically, I have an app in the AppStore which is a soundboard. It works great and we've shifted a few copies. My client now wants to include random sounds when the character's face is clicked on TouchDown. I've got that working fine, using an array. However, he now wants the button to retu...

UIWebView Keyboard - Getting rid of the "Previous/Next/Done" bar

I want to get rid of the bar on top of the keyboard that appears when you focus a text field in a webview. We have some other ways of handling this and it's redundant and unnecessary. ...

Calculating driving distance in iPhone

Hi, I need to find the driving distance between 2 locations. I do not need to display the directions in a map, just need to calculate the distance, which I need to use in my application. Does MapKit allow this? Is there an alternative that can be used? I am able to get forward geo-coding using CloudMade, but there doesn't seem to be ...

Remove delegate on dealloc from unreferenced object

If learned the hard way that you should remove the delegate from an object if the life span of the delegate is shorter than the object. But how do you do this if you don't have a reference to the object anymore? In my iPhone application I have a view controller vc which performs an asynchronous activity and is displayed as a modal view....

Where is 'Class Actions' in the 'Object Identity' panel in Interface Builder?

I thought I was fairly experienced at iPhone development, but I'm tripping up on the Stanford iPhone course on the very first video http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.3124430053.03124430055 (38 mins in) Cannistraro, the teacher, drags an NSObject into the MainWindow.xib. And when he inspects the Ob...

Disabling data detectors for a specific HTML element in a UIWebView

Does anyone know if it's possible to disable the data detectors for phone numbers, email addresses etc in a UIWebView, for specific HTML elements only? I'd like the detectors to be active for most of the content loaded into the UIWebView, but disable it in certain areas. If this is possible, I'm assuming it would be achieved by using a...

Simultaneous record and play from same file

I'm attempting to use Audio Queue Services for the first time. After reading all the documentation and playing with some sample code, I think I understand the classes pretty well and have implemented my own playback and recording application without any problems. I need to simultaneously record and play from the same buffer, but I'm hav...

Spacing between characters on the iPhone

I have a label and I wish to increase the spacing between characters. I tried adding a space between each character, but this was too much Perhaps there is a font with large spacing between the letters? If all else fails, I am considering putting each character (only a size character code), into its own textbox. Any ideas on how to ...

iPhone performSelector changes object type

I have a callback class with the method -(void)fire and it calls [target performSelector:selector withObject:dictionary]; Just before that line I added NSLog(@"%@", [[dictionary class] description]); to see where the object changed, when debugging it returns NSCFDictionary. So that was all fine. Next I went and added a similar line to g...

Different actions on alert views buttons, depending on the alert view.

I have 3 alert views in my apps. 'wonAlert' 'lostAlert' 'nagAlert' I implement this to give them actions. -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex This used to work fine, when I had just the 'wonAlert' and 'lostAlert', they had a dismiss and a learn more button that took them to wikiped...

Tapping near a button on navigation invokes the button - unexpected iPhone behaviour

I have a UIViewController class with a navigation bar shown and a button on the rightmost end of the navigation bar. Then right underneath it is my main content area with a UISegmentedControl shown below the navigation bar. Whenever I click/tap on the navigation bar near the right button but not directly on the button, I am getting an u...

Bluetooth Transfer for Core Data Entities

How would I go about using bluetooth to transfer a core data entity with it's corresponding relationships? I have three core data entities with inverse relationships set up and it all works fine, but I need to transfer these to another iPhone based on the context that it is not in the corresponding table in the core data entity set on th...

UITableView didSelectRowAtIndexPath: not being called on first tap

I'm having an issue with UITableView's didSelectRowAtIndexPath. My table is setup so that when I select row it initializes a new view controller and pushes it. The first time I tap any row in the table, the method does not get called. Once I select another row, it begins to work as normal. I have verified this by setting a breakpoint ...

Xcode linked project header files not found

Hi all, Here is the situation I have: ProjectA - Xcode static library project. ProjectA contains logical code group ExternLib with file ExternLib.h. ExternLib.h itself is in the folder Classes/lib/ExternLib (relative to ProjectA folder). Within ProjectA, I use ExternLib.h simply as: #import "ExternLib.h". This works fine. Next I have ...

GCC4.2 build warning : Default deployment version is greater than the max value for the iPhone simulator 3.1.2 SDK?

Hi I upgraded an iPhone project from the 2.2.1 SDK to 3.0 SDK recently... And when I build the project I am getting the following warning: GCC 4.2 default deployment target 10.6.2 for architecture 'i386' and variant 'normal' is greater than the maximum value 10.6 for the Simulator - iPhone OS 3.1.2 SDK I have the iPhone OS D...

Window Based Application - Problems getting to next view/controller

I have a Windows based application. I have a series of buttons in the xib. When I click on one of the buttons I want it to load a table view or a web page or a text view (depending on the button). This is the code I am using to attempt to move to the table view (which has its own xib). It prints the NSLogs lines in the console. It d...