iphone

How to get UINavigationController child view

Hello guys, I have one detail view controller in splitView - SearchDeatilViewController. But that view controller is attached to navigation controller. How can I get that subview to take controll of him? I tried like this, to reload sub view tableView: SearchDetailViewController *detail1 = (SearchDetailViewController *)[self.viewContr...

mixing opengle es and quartz 2d - performance cost?

The apple docs say it's possible but does anyone know if there is a performance hit when say drawing a quartz path on top of images loaded with opengl es? Or, mixing drawing of paths from both etc? Thanks. ...

Unit Testing broken in iOS 4.1 SDK?

After upgrading to the 4.1 iOS SDK my unit test bundles always return with the following two errors and one warning: An internal error occurred when handling command output: -[XCBuildLogCommandInvocationSection setTestsPassedString:]: unrecognized selector sent to instance An internal error occurred when handling command output: -[XCBui...

Creating nice looking fonts with "blurred" borders in Cocoa Touch / Core graphics

Hello, I would like to draw a nice looking fonts in Cocoa Touch (by "nice looking" I mean white font with blurred black border that looks like shadow) The question is either: Is it possible to display bitmap fonts in coca touch Is it possible to render a border for a font (for each character) ...

How to programmatically detect Game Center?

I'm adding Game Center support to my game. Because my game can run on iOS versions back to 3.0, I want to have it fallback to just saving achievements and leaderboards locally in the absence of Game Center. Right now, I have this: + (BOOL) isGameCenterAvailable { Class playerClass = NSClassFromString( @"GKLocalPlayer" ); if( playerC...

Is possible make a .xcodeproj file and how?

Hello everyone, is possible make a .xcodeproj file and how? I'd like to make a Mac software which have to build a .xcodeproj file. ...

bitmap fonts in cocoa touch

Is it possible to use bitmap fonts in cocoa touch / quartz 2d? If yes how do I do that? ...

Remove Bottom Space From UITextView

UITextView adds a little extra space to the bottom of the text. This isn't an extra line of text, but space that effects scrolling. Is there any way to remove this space? I have attempted to use contentInset, contentOffset and contentSize but they all seem to have no effect. ...

How to change the name of the iPhone Application?

This question has been asked before and I did followed the instructions but my application crashed. I want to change my application name before deployment. I clicked on Project and then selected rename. Everything got renamed. When I ran the application the application crashed. I think it was because the app was not able to locate the im...

Set delegate in a different class

I'm trying to write my first iPhone app and i'm having some trouble with a delegate. I have a class that utilises the AVAudioPlayer to play some sound, I then have another class that I need to do something when that sound is complete. So I need this class to implement audioPlayerDidFinishPlaying method of the audio player. The problem...

Cannot see my label outlet when draging file owner in Interface builder

I have this in my .h controller @interface helloViewController : UIViewController { IBOutlet UIlabel *label; } -(IBAction)hello:sender(id); @end I opened the corresponding .xib file and I could drag and associate the button -hello to the file owner but trying to associate the label doesn't work: it suggests me to associate -vie...

Problem with hash256 in Objective C

Hi,when i use this code for generate an hash256 in my iPhone app: unsigned char hashedChars[32]; NSString *inputString; inputString = [NSString stringWithFormat:@"hello"]; CC_SHA256([inputString UTF8String], [inputString lengthOfBytesUsingEncoding:NSASCIIStringEncoding ], hashedChars); NSData * hashedData = [NSData...

"_OBJC_METACLASS_$_NSObject", referenced from: Delagates and classes??

hello i keep getting this error on 1 custom frameworks i just added i tried adding "-ObjC -all_load" in other linking flags (main project) also when i enable the search paths directory on the target info i get one error that says this Argument list too long: recursive header expansion failed at /Applications/eclipse/plugins/com.google....

Catching drag events on a view.

I can get button presses etc in Iphone. Is there away to catch drag events? Or do i need to make something custom to handle this? Are there any complications if you have a mainview and inside the main view you have 2 subviews. So basically 3 view on the sceen at once. Can all drag events go to the mainview? Many Thanks, Code ...

Does using dropbox require encryption disclosure

If I use the Dropbox API in my iOS app does this require me to declare at submission time that I have encryption in my App? If so is this a big amount of frak for a solo developer, legal & paperwork wise? ...

UIControl (addTarget:action:forControlEvents:) @selector arguments

@selector(updateStuff:) This is automatically sends the parameter :(id)sender. Is it possible to override this to be something else? In my particular usage, the actual sender is meaningless. I'm using a UITableView and setting a UISwitch in the UIAccessoryView slot on every cell. Originally, I was adding the UISwitch to the UIAccessory...

Possible to use UIActionSheet from Application Delegate?

I have a common UIActionSheet which I use across about 10 different view/view controllers. I'm wondering if it's possible to use UIActionSheet from the app delegate in order to prevent code duplication? So far my attempts to use an action sheet from the delegate haven't worked, I suspect my problem lies when calling the showInView metho...

How can I display a simple animated spectrogram to visualize audio from a MixerHostAudio object?

Hi all, I'm working off of some of Apple's sample code for mixing audio (http://developer.apple.com/library/ios/#samplecode/MixerHost/Introduction/Intro.html) and I'd like to display an animated spectrogram (think itunes spectrogram in the top center that replaces the song title with moving bars). It would need to somehow get data from t...

How is a UIWebView's text color set?

I have been able to set the color of the background of my UIWebView, but not the textcolor. How can I set the text color? I use this code itemSummary.textColor = [UIColor colorWithRed:202 green:192 blue:146 alpha:0.75]; but get an request for member 'textColor' in something not a structure or union error. Thanks ...

iPhone game loop hybrid

I had an idea for an app that would require me to implement these little sprites that would require basic physics features like gravity, acceleration, etc... so naturally I looked into a game loop for the iPhone, there were plenty of threads on this, but what I am trying to understand is that I want to be able to create these sprites and...