iphone

Integrating FB connect with Foursquare into an IPhone App

Hello. Does anyone know, whether/how it is possible to link your FB account to your Foursquare account within an own IPhone App? This is the functionality implemented by a lot of sites for their Web services. ...

How do I access variable values from one view controller in another?

Hello all, I have an integer variable (time) in one view controller whose value I need in another view controller. Here's the code: MediaMeterViewController // TRP - On Touch Down event, start the timer -(IBAction) startTimer { time = 0; // TRP - Start a timer timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self s...

Obj-C crashes on substringWithRange message

The following code is making my app crash at line 3 without an error I would recognize or know how to deal with. Any ideas as to what I am doing wrong? NSInteger *match = [str1 intValue] + [str2 intValue]; NSString *strrep = [NSString stringWithFormat:@"%i", match]; label.text = [strrep substringWithRange:NSMakeRange(1,3)]; ...

Event handler-ish code? (iPhone Developing)

This is for iPhone Developers. What would be the code for an event handler? For my project I want it so that on collision display an animation for 3 seconds....How would I go around doing this? ...

Cocoa Browser Air missing iPhone docs. Can't find xcode DocSets?

I installed Cocoa Browser Air at home from the same installation file (for 2.4.1) that works fine at work. Its info for Mac OS X 10.6 looks OK, but there's nothing under either iPhone 3.1 or 3.2. I've installed the appropriate Documentation Sets in Xcode Preferences->Documentation, and I have an iPhone SDK, which is required to refer t...

Do Apple require Network detection for openURL in Safari from your app?

I am about to submit my first iPhone app to the app store and within the about page, I have a link to our website. Is it ok to allow Safari to open and fail to load if network is not present, or will I be required to use reachability code to detect this beforehand? I don't want the app to be rejected, so want to cover all bases. Thank...

Confused about UIView frame property

I'm building a prototype iPad app that draws diagrams. I have the following view hierarchy: UIView UIScrollView DiagramView : UIView TabBar NavigationBar And a UIViewController subclass holding all that together. Before drawing the diagram the first time I calculate the dimensions of the diagram, and set the DiagramView frame to t...

File Translator to Export Animated 3D Character from Autodesk Maya as Quake MD2

I'm wondering if anyone knows of a way to export geometry/textures for a rigged, animated character as Quake MD2? I’m developing an app for mobile devices, and I’ve found that MD2 works great for lightweight OpenGL rendering. I have several animated characters, and I’d like to export them as MD2 from Maya. Here are some of the things I h...

On Collision Display Animation Code? (iPhone)

This is for iPhone Developers. What would be the code for an event handler? For my project I want it so that on collision display an animation for 3 seconds....How would I go around doing this? ...

newsgroup client

Hello everyone I hope to develop a newsgroup client reader for iPhone. But I can not find out any technology concern this. Welcome any commnents Thanks interdev ...

How to pass a variable through a selector?

I have a method -(void)myMethod:(MyObject*)obj And I am detaching a new thread [NSThread detachNewThreadSelector:@selector(myMethod) toTarget:self withObject:nil]; How can I pass a MyObject* through @selector(myMethod)? ...

iphone / objective C / how to encode a double[] for archiving

I am using double[] instead of NSArray. Would anyone know how to encode it for archiving ...

Can I push a modal view controller from within another modal view controller?

I've got a rootViewController that, at one point, displays a peoplePickerNavigationController. I'm trying to push a second view controller when my user selects a specific contact property, like so: -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)picker shouldContinueAfterSelectingPerson:(ABPersonRef)person ...

Building a complex view with Three20 - resources?

I'm using three20 for most of my iPhone app. One of the views I need to create is relatively complex. It needs a top bar (under the nav bar) with some controls and label, an image view below this bar (which occupies most of the body) and another bottom bar with more controls and labels (above the tab bar control). I don't have much UI e...

How to link UINavigationController to multiple ViewController?

i have 2 tabbars each bar have own ViewController and UINavigationController. so i create 1 instance UINavigationController from my Appdelegate, how can i link them with my UINavigationController? Notice i try: in IB it can link only 1 to 1 ...

Need to Release UIWebView Delegate?

I have a UIWebView named wView. I want to use webViewDidFinishLoad: in my class, so I am setting the class as the delegate for wView by using this line: wView.delegate = self; Everything loads properly, but when I close the UIWebView, the App crashes. If I comment out the wView.delegate = self, it works and does not crash, but then I ...

How to transform (rotate) a already exist CALayer/animation?

Hello, I have added a CALayer to the UIView of my app: CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.35]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; animation.type = @"pageCurl"; animation.fillMode = kCAFillModeForwards; ...

Why can I not add a animation to a UIImageView?

Hello, Im trying to add a animation to a UIImageView, but it always fails. Why? Here is the code: //(…) UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); animationImage = [[UIImageView alloc]initWithImage:newImage]; [self.view addSubview:animationImage]; CATransition *animation...

Problem with playing a sound when a button is clicked.

in my code: #import "MyViewController.h" #import "AVFoundation/AVAudioPlayer.h" - (IBAction)playSound{ AVAudioPlayer *myExampleSound; NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"]; myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExampl...

Loading data from a dictionary of dictionaries into an array in Objective C for an iphone app

I have a UINavigationController consisting of a tableview I want to load some data into. I have a dictionary plist containing Dictionaries for each Train Line which in turn have dictionaries for each station with the relevant information along with one string lineName. I need to collect the station Names keys and add them to an array to...