Hi, it may be very easy, but I don't seems to find out why is URLWithString: returning nil here.
//localisationName is a arbitrary string here
NSString* webName = [localisationName stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString* stringURL = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@,Mon...
Hi all,
I am stuck with some TouchXML code. Please help.
I have the following code to get the data from an xml webservice:
NSData *urlData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSString *data = [[NSString alloc] initWithData:urlData encoding:NSUTF8StringEncoding];
NSLog(@"Strin...
I have a UIScrollView with subclassed UIImageViews in it. When one of the imageviews are clicked, I'd like the parent UIView (contains the scrollview) to receive the event in its
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
I can tell if the imageview was clicked by
if(CGRectContainsPoint(myScrollView.frame, loc...
So I have a project I am working on, and I would basically like to send a basic yes/no command from the iPhone to a wifi enabled device that is also connectedto the network on the same router. This other device is not a computer, so I am wondering if I can still use Bonjour? In order to use Bonjour, do both of the communicating devices n...
I am looking to make a iPhone app for a simple anonymous discussion website I launched this week (blurba.com).
I would like it to be native, available for free download in the app store.
I am looking for the fastest, easiest way to do this.
I have been looking at these options.
1. Build a native app in Obj-C
2. Build with JQ tou...
Hey,
I've been using CALayer to do all the custom drawing and animations and found it really nice to work with. But when I tried adding a navigation bar to the superview, it comes out as white. I have a superview with a navigation bar and a subview thats used for the calayer drawing. The drawing in the subview does not reach beyond its b...
I have an application that uses a TabBarController to switch between modes. When in a certain mode, I'd like to hide the tab bar until the steps of that mode have been completed. Note that I'm not using a navigation controller so I can't use the setHidesBottomBarWhenPushed method on the navigation controller to hide the tab bar.
When I ...
So I am creating an class that does an animation. There is a timer delay. So I will instantiate this class. Have it do its thing then have a timerFinished type of delegate to continue on.
This question comes from my sheltered garbage collection career.
What is the best way to release this object?
Do I have it release itself when it...
Hey guys, I'm having trouble obtaining the value/text from a AlertView TextField. Maybe someone can look at my code and see what I'm doing wrong. Every time I press OK, the label get's a (null) value. I must be missing something here.
TextFieldINAlertViewController.h
#import <UIKit/UIKit.h>
@interface TextFieldInAlertViewControlle...
I'm trying to play a movie that has closed captions embedded in the file (.scc) using an instance of MPMoviePlayerController. I've read the documentation and don't see support to turn captions on with this class. I know Apple allows a user to turn on captions for movies from iTunes. Anyone know of a particular way to do this that I mig...
Hi all, i am creating a python server socket that sends data to the client reguarding files status... what i have is a list containing dictionaries:
[{'Status': '[2,5%]', 'File': 'SlackwareDVD.iso'},
{'Status': '[21,8%]', 'File': 'Ubuntu_x86.iso'}]
the socket, when asked, sends this data, obviously it is sent as a string type.. i was...
I'm doing some lazy image loading for thumbnails to be displayed in a table. I have a class that loads the image for me asynchronously...but my problem (or at least, a problem) is that by the time the image loads, I have no idea whether the cell that initiated the image load even exists anymore. Is there a way for me to test to see if a ...
I'm writing a build script to compile and package my app, and I'd like a nice way to get the full path name of the .app created. I can't find any command line tools other than xcodebuild, which doesn't appear to have much in the way of inspecting an Xcode project. My full compile command is
xcodebuild -sdk iphoneos2.2.1
so it'll build...
I downloaded a new SDK version and now I get this error.
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
I don't need to deploy to the device just get my project running in XCode.
Thanks in advance.
jpc
...
Hi I want to create a table-view with 495 cells.
I want to import cells with NSArray, is it right way?
If yes, how can create 495 cells with simple code?
Not like this :
@"Cell 1" @ "cell 2" @"cell 3", @"cell 4", @"cell 5" ............. @"cell 495"
...
I have a problem that I solved using delegates, but now I am thinking I may have made a mistake.
This is what I want to do.
I have a class that runs on a delay. When it is done it has a finished delegate that it calls.
Now I have the main class that creates two of these delay classes.
I don't want them to both be handled by the sa...
I am trying to learn my first programming language. Unfortunately I picked the Iphone to start. Thought it would be easy... ooops. Anyway 4 weeks later I've actually got a couple of working apps! kind of...
One of my apps that had a couple of text boxes and a couple of labels.
Each person has a has button that starts a timer that decre...
I have a program using CoreData and a navigation controller. If I add a entity that is connected to my main entity through a relationship than back out to the table view of all entries and the back into the same, recently edited, entry my program crashes. My code is very similar, and for the CoreData part the same, to Apples sample cod...
I'd like to use NSUndoManager in an iPhone application on CoreData (NSManagedObject) objects such that I can save (and later restore) the state of the NSUndoManager if the application exits prematurely (say, due to a phone call coming in). I.e. as opposed to automatically discarding or saving the changes accumulated in the NSUndoManager...
In my app I have some logic that changes the UIScrollView's contentSize dynamically. The problem I'm running into is that when I change the contentSize it sets the contentOffset to CGPointZero or something like that.
I guess you can't set contentSize to be in the middle of the UIScrollView. Any ideas on how to get this to work?
In othe...