iphone

How to auto-open file in iPhone Mail into iphone application?

I am working on adding the capability for users to export data from my iphone app. I'd like to allow them to email it to themselves or to a friend. Is there a good way to enable the iPhone mail app to auto-open a specific type of file into a specific app? I know that I could somehow create a specific URL which would open such as myapp://...

Returning data from data-grabbing class from web?

I'm trying to create a class which will let me get requested data from a web service. I'm stuck on how to return the values. // FooClass.m // DataGrabber is the class which is supposed to get values dataGrabber = [[DataGrabber alloc] init]; xmlString = [dataGrabber getData:[NSDictionary dictionaryWithObjectsAndKeys:@"news", @"instructio...

Mimicking xcode's build process through xcodebuild

I'm looking to build + run my iphone xcode project totally outside of xcode. Currently I'm using xcodebuild to build the project - which seems to build cleanly: https://gist.github.com/8eadfb1acca4d101624b Unfortunately it doesn't seem to replicate the same Build as done by xcode. Rebuilding it leads to a bunch of syntax errors. Are...

UIDatePicker & NSDateFormatter returning incorrect date

Hello, I have allready tryed solutions from a few posts, but no luck. The problem is that i'm facing is probably whit time zones. Both on device and simulator UIDatePicker and NSDateFormatter are returning incorrect dates, adding or substracting the difference from GMT 0, from the selected date (according to the current time zone set on ...

iOS: FTP TLS Connection

I need a FTP TLS Connection for my iPhone-App. A normal FTP-Connection works fine. But I need also a secure TLS connection. I used the code from Apple´s SimpleFTPSample for the iPhone: ftpStream = CFReadStreamCreateWithFTPURL(NULL, (CFURLRef) url); self.networkStream = (NSInputStream *) ftpStream; [self.networkStream retain]; self.netw...

iPad form creation?

I would like to create a form in my iPad application which is very similar to the form used when setting up the Cellular Data Account on the iPad. That is, it collects User Information, Payment information, and other information from the user in a modal view across multiple steps. Is there a good tutorial out there for creating this ty...

Need Help in saving Geotag info with photo on iOS4.1

I am having major issues trying to save a photo to camera roll with geotag info on iOS4.1. I am using following ALAssetsLibrary API: (void)writeImageDataToSavedPhotosAlbum:(NSData *)imageData metadata:(NSDictionary *)metadata completionBlock:(ALAssetsLibraryWriteImageCompletionBlock)completionBlock I have the GPS coordinates that i w...

how to extract a value of a string which is there in url

i hav a url and want to extract part of the string ... i hav url like www.google.com?id=10&jkhsds=fg.php i want to extract the value of id ...

How to prevent CALayer from implicit animations?

When I set the backgroundColor property of an CALayer instance, the change seems to be slightly animated. But I don't want that in my case. How can I set the backgroundColor without animation? ...

Do i need to know users device ID or Device Token to send notifications to them ?

How to send Notification to all those users who have downloaded my applications from apple store ?? Do i need to know users device ID or Device Token to send notifications to them ? ...

how to integrate ASIHTTPRequest to iphone project

hi all I am trying to add ASIHTTPRequest library to my iphone project i followed these lines Integrating ASIHTTPRequest ASIHTTPRequest is a powerful open source library written by Ben Copsey from All-Seeing Interactive (and he’s a fellow cocos2d developer too!) It makes it easy to post data and files, and has tons of other great...

Facebook via iphone without using an iphone...

How can i trick my wall post using an application or any to trick my wall post so it say 11hours ago via iphone for facebook.It looks so cool... ...

Differentiate iPhone4 vs. iPodTouch4 in Code

Hi, I want to programmatically differentiate between iPhone4 and iTouch4. Here is what I have tried : +(BOOL) isIphone4 { if ( ![ImagePicker isIpodTouch4] ) { return NO; } if ([UIImagePickerController respondsToSelector:@selector(isFlashAvailableForCameraDevice:)]) { if ([UIImagePickerController isFla...

Apple push notification enhanced format

Does anybody know how to get error response from Apple push notification service when enhanced version of protocol is used? ...

drawing in an uiimage, then scaling, then drawing more problem

I'm trying to create a view that a user can draw in, use multitouch to scale, and then draw some more. I have a basic view (canvas) where I add an imageView (sized to the canvase) and nil image. I draw in (on?) the image by using drawInRect. I copied my drawing code from here. This works fine. I then added a multitouch check in touch...

UISplitViewController not showing right view?

I am making my app for 3.2 but I recently started trying the new SDK 4.2beta2 and my app does not shows the right view. Is just black. I checked and the splitViewController is indeed loading the right controller and the object is on memory but is not shown. I wonder if someone has experienced the same problem and/or where to start look...

CSS background image rendering differently on iPhone

We have a page design that works great in every PC browser that I have tried, but goes strange when viewed with an iPhone or iPod Touch. The problem is something to do with a centred background image thats very tall: #content_container { background-image:url('content-background.jpg'); background-position:top center; background-repeat:...

How can I do custom drawing on part of a view that also contains buttons and other controls?

I've tried this demo code and gotten it to work fine: http://www.techotopia.com/index.php/An_iPhone_Graphics_Drawing_Tutorial_using_Quartz_2D What I'd like to do, however, is to do the same custom drawing onto a panel or canvas of some sort sitting on the view (instead of drawing on the view itself). I'd also like to have other contro...

UIButton event 'Touch Up Inside' not working. 'Touch Down' works fine.

Hi, I've got a UIButton in a UIView, which is in a UIViewController that I've allocated and inited from a .xib file. When hooking an IBAction up to the 'Touch Down' event of a UIButton it triggers correctly. But if I hook it up to the 'Touch Up Inside' event it doesn't respond. Other events don't work either. 'Touch Drag Enter', 'Tou...

HTML Parsing fails with accented letters (eg: é)

I'm using this library: http://benreeves.co.uk/objective-c-hmtl-parser/ to parse HTML for a little iPhone app I'm making. I have got the code working so far, but it fails when presented with an accent (so far only experienced é). This is the code I'm using: NSError * error = nil; HTMLParser * parser = [[HTMLParser alloc] initWithContent...