iphone

how to use the camera roll feature which says upload video to youtube, email and mms, in our own iphone application???

Hi, i have built an iphone application which makes a video and than you can record the video further. now the main part or my application is that i want to upload it to youtube or e-mail it. now conventionally you take a video or picture for instance from the gallery and using the camera roll feature. can i utilize that feature in my own...

iPhone parsing url for GET params

Hello, I have an string which is got from parsing an xml site. http://www.arijasoft.com/givemesomthing.php?a=3434&b=435edsf&c=500 I want to have an NSString function that will be able to parse the value of c. Is there a default function or do i have to write it manually. ...

How to make tile turnaround animation for iPhone app

Hey all I am making a memory type game on iPhone, I would like to know what would be the best way to make an animation of tile turning around to reveal what is on the other side. So user would tap a tile and animation would start turning the tile around. Thanx for suggestions Ladislav ...

Xcode Selection in "Groups & Files" Tree keeps jumping to the enclosing Group

I have noticed this really annoying behaviour in xcode at the moment where I try and select a file in the "Group & Files" tree and xcode "automatically" un-selects it and moves the focus to the enclosing group. The SCM Group is in a perpetual spinning state and I assume that this is related however I can't seem to prevent it. There is n...

Disabling implicit animations in -[CALayer setNeedsDisplayInRect:]

I've got a layer with some complex drawing code in its -drawInContext: method. I'm trying to minimize the amount of drawing I need to do, so I'm using -setNeedsDisplayInRect: to update just the changed parts. This is working splendidly. However, when the graphics system updates my layer, it's transitioning from the old to the new image u...

Push/Present Modal View Controller

I have a table in my view controller (let's call it TVC1). I have rows in TVC1 that are used so the user can input some more data in addition to the data on TVC1. So, when someone taps a specific row in TVC1, it will show another view controller (let's call it TVC2). However, when TVC2 is shown, all of the data in TVC1 is cleared. How ca...

How to Prevent Build Warning: " NSData may not respond to 'dataWithBase64EncodedString:' "

The following code produces this build warning: NSData may not respond to 'dataWithBase64EncodedString:' The code: NSString * message = @"string string string"; NSData *data= [NSData dataWithBase64EncodedString:(NSString *)message]; How do I fix this to remove this warning? ...

How to fill a the area between an upper and lower boundary curve on a scatter plot

I have a chart that has a single line that I would like to put a boundary cone on. I can plot the two lines for the upper and lower boundary values - but I'd like to shade the area between the two boundary lines. How can I do this? / Can I do this? ...

iphone compass interference detection

How can I tell from my app if the compass has interference and ask the user to re-calibrate it? I want to get the same behavior as the google maps app has when there are compass interferences. Thanks. ...

Adding Two Numbers Entered as Strings in Textfields

Hey Guys , I have two text fields in which numbers are inputed as strings. I need to convert the strings to numbers, add them together and then display the result in a 3rd textfield. I am totally new to iPhone programming .. So please don't be hard on me :P Ok here is the problem AdditionViewController.h #import <UIKit/UIKit.h> @i...

How to Recreate the Last State of an App the Next Time it is Launched?

I have 2 views. When I'm on the 1st view, I have a textfield. I enter some text in the textfield. I exit the app, launch some another application and then return to my application. I want to maintain state of the textfield and that view. Likewise, if I quit with the 2nd view active, when I return to the app I need to return the view to t...

Method to phonecall from UITextField

Hello community, i have a problem. I have implemented an UITextField that contains a phonenumber, then i have implemented the following method to call the phone number: - (void)rufeAn{ NSString *prefix = (@"tel://"); UIApplication *app = [UIApplication sharedApplication]; NSString *dialThis = [NSString stringWithFormat:@"%@%@", prefix, ...

Problem With NSURLConnection and Location

Hello all , I am using the location manager to generate location data that I send in a URL to down load data. The first time I call the location manager, it correctly returns the current location and based on the current location I can fetch the data from the URL. However, when I attempt to retrieve the current location a second time...

iPhone web service calls to WCF Service with Certificate Authentication

We are a .Net shop that has standardized on WCF Services. We are in the processs of developing an iPhone application that needs to make secure web services calls to obtain data for the app. To ensure secure communiations we have enabled SSL on our web servers. But this does not ensure the service can only be consumed by authorized apps. ...

how to check Bluetooth is enabled or not if not then enable it programatically iphone sdk

hello i am new to iphone, i am developing a application in which i have to check that Bluetooth is enabled or not if not then enable it programatically so how can i do this please help. Thanking You Rajesh ...

Reading Bundle version from PList

Is there a way to read the app's bundled plist file, I am wanting to pull the value for Bundle version. ...

How to make an NSFetchRequest which asks for objects that have a specific firstname?

For example, I have a Managed Object Model with an Entity called "Friends", and a friend has a firstName. I want to get all friends where the firstName is equal to "George". How can I do that? ...

How should I manage swapping a UINavigationController in and out of another UIViewController?

Here's what I have: A MainWindow.xib file configured with one UIViewController (subclassed to RootViewController). This nib gets loaded at application launch. RootViewController has two ivars, a custom subclass of UIViewController and a UINavigationController. Both of these are loaded from nibs. When the application launches both i...

Testing Apple Push Notifications Feedback - no items received

How to test feedback.sandbox.push.apple.com? Everything goes right, but I receive empty list. How to make it consider the device token as inactive? I installed the application to iPhone using Xcode, received some push notifications, then removed it from iPhone and send some more notifications. But even on the next day feedback.sandbox....

Display locale language in full

Hi, I am getting the user preferred language from the below code: NSUserDefaults* defs = [NSUserDefaults standardUserDefaults]; NSArray* languages = [defs objectForKey:@"AppleLanguages"]; NSString *language = [languages objectAtIndex:0]; This will return something like 'en' for 'English', or 'de' for 'Deutsch'. Is there any way I can ...