iphone

how to request url to connect

how to request url to execute or connect to server .. what i was using not working.. NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@%@%@%@%@%@%@%@%@",[ConfigDB valueForKey:@"mailURL"], @"?ownerID=", [ConfigDB ownerID], @"&userid=",[ConfigDB userID],@"&pID=",pid,@"&emailAddress=",emailTxtField.text,[ConfigDB valueForK...

NSString initWithData returns null

I am pulling data from a website via NSURLConnection and stashing the received data away in an instance of NSMutableData. In the connectionDidFinishLoading delegate method the data is convert into a string with a call to NSString's appropriate method: NSString *result = [[NSString alloc] initWithData:data ...

How do I parse a date string in an unknown format on iphone?

How can I parse a string that represents a date and/or time using iPhone SDK if I do not know the format? I am building an application that will allow a range of possible dates and times to be used, and I don't want it to fail because the format was "01/01/2001" instead of "01-01-2001", etc. Time may or may not be included. Is there a...

iPhone:Play .asf streaming audio file on iPhone programmatically?

Hello all, I am trying to play a streaming audio from a link where i get .asf file. But my program is unable to play it. I found the below link, where they are talking about the samething.. http://www.iphonedevsdk.com/forum/iphone-sdk-development/31117-asf-streaming-iphone.html Seems like, some apps are able to play it. I got confused n...

iphone facebook login button not rendering

Hi, I'm new to objective-c so bare with me. I'm using the Facebook iPhone SDK found here: http://github.com/facebook/facebook-iphone-sdk All I'm trying to do is display the login button given in the SDK though obviously I don't have a full understanding of views. In my viewDidLoad method (i'm putting it here as I'm initialing the vie...

How do I resolve this circular dependency?

Hello. I'm new to iOS development and am running into an issue with my header files. I'm running into a circular dependency issue with my header files. My application delegate class contains a pointer to my view controller, since I have to set one of the view controller's properties in my didFinishLaunchingWithOptions method... //app...

If/Else statement for Date..iPhone SDK

I have this bit of code here. How would I write an if/else statement to determine whether the itemDate has already passed? So if itemDate has already passed, then localnotif.fireDate should be what it is now, plus 86400 (for 24 hours) else leave as is. NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar]; NSDa...

Replacing UITabBarController in UIApplicationDelegate

Heya I'm having a problem with navigation logic in my iPhone app and was wondering if you could help? When the app first starts it loads a UITabBarController with 2 options : Load, and Create. Whichever of the two options is chosen loads a view into that tab with the appropriate information. From here however, when the users either sel...

Post HTTP data error

NSString *myRequestString = [NSString stringWithFormat:@"&nbr=%@&import=%@",tmpString,noSpaces]; NSData *myRequestData = [ NSData dataWithBytes: [ myRequestString UTF8String ] length: [ myRequestString length ] ]; NSMutableURLRequest *request = [ [ NSMutableURLRequest alloc ] initWithURL: [ NSURL URLWithString: @"http://mysite.com/c...

Problem adding custom view to navBarItem

Can anyone explain to me why the code below does not work correctly on iOS 3.1.3? On 4.0 it works great however on earlier versions the image is not respecting the size of the frame and is displaying in its original size leaving a huge image where my navItem should be??? flipView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)]...

Prevent a section in UITableView in Edit Mode from narrow animating?

I have a UITableView with 3 sections. 2 of the sections are fixed in that when in edit mode, no additional rows can be added or deleted, therefore only 1 of the 3 sections show the green plus/red minuses, however the rows in all three section animate to a narrow width to accommodate the plus and minus for the single section that can be ...

UITableView and NSOperation Logic Problem

Hello everyone, My project is a Thumbnail image gallery. I implemented it using a UITableView which has custom cells. In each cell there's 4 UIButtons which has the images. And the images are downloaded from the internet using their URLs. The way I'm assigning the images to the buttons is using Jasarien's method described in this post....

example of usage for wordnik

Does anyone have an example in Objective C that uses the wordnik apis? The repo on Git hub offers a set of classes with pretty much no explanation of how to put together the pieces (rather than what libs you need to make it compile) ...

iPhone save data getting deleted on upgrade?

I have an app in the app store, and just got a message from a user telling me that upon upgrading to a newer version of the app, their saved data all disappeared. Is there a distinctly wrong way to save data on the iphone that would cause data loss upon upgrading the app to a new version? Here is the code I'm using to load & save, whic...

What is your favorite video/screen capturing tool for the iPhone simulator?

I'm about to publish a new web site design with all of my iPhone apps, and I would like to display a video demonstration of the iPhone apps in an embedded video on the web page. I need recommendations for a video capturing tool that would run on a Mac, and record the interaction of the user with the app on the iPhone simulator. I tried ...

iPhone SDK: Does YouTube allow streaming into iPhone apps?

I have an app that plays a video. I am wondering if YouTube allows iPhone apps to stream videos to it? Right now, my problem is the size of the video is so large it is not practical to embed within the app. So, I want to stream it. I am looking for a place to park the video so I can stream it. Is YouTube an option? If not, can anyon...

iPhone SDK: SearchDisplayController with Core Data Table Sample Code?

Are there any good samples of using a SearchDisplayController with a Core Data backed tableview? None of the Apple samples I see use Core Data, NSFetchedResultController or NSPredicates. ...

Yet another iphone memory leak cry for help. Looking for advice on next steps.

Hi, I hate having memory leaks and usually pride myself on, blah, blah, blah. Help! The leaks I have aren't crazy big (a few K at max), but I want to remove them for sure. There are two categories of leaks and I've got some screen shots of each from Instrument's Leaks tool. The first is just some odd Java/Web thing that happens withi...

I want to convert my HTML site into iPhone or Droid compatible site. How can I do that?

My website is really very simple HTML based site. My site is located here: http://www.threesite.com How can I convert this simple HTML site compatible with iPhone or Droid? Do I need to convert the same into PHP based site and then convert? Your help will be much appreciated. ...

textView: How to remove text when editing begins and not when firstRsponder...

The headline says it all. In my textEditView I have an textView with a lightgrey default text in it, "Context". The textView is the firstresponder. What I want to do is to remove the text when the editing begins, not when the textView becomes firstResponder. Hmmm a idea is forming in my head... could I run a check of the NSRange someho...