char asd='a';
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Are you sure?" message:asd
delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
[alert show];
[alert release];
above code not compiling in iPhone simulator.
Why is that?
:)
...
I have a UIDatePicker that shows (ex. April | 13 | 2010). I need to get each component value and set it as an integer so it can be put into three separate keys in a Plist.
MyMonth Number 04
MyDay Number 13
MyYear Number 2010
I can set a text label by using:
NSDateFormatter *df = [[NSDateFormatter alloc] init];
df.dateStyle =...
To all,
I was looking at the sample project from http://iphoneonrails.com/ and I saw they took the NSObject class and added methods to it for the SOAP calls.
Their sample project can be downloaded from here http://iphoneonrails.com/downloads/objective_resource-1.01.zip.
My question is related to my lack of knowledge on the following s...
Is there any iTunes API for the iPhone OS which I can use to access some information (current track, etc.) from iTunes?
I looked around, but all I could find was some AppleScript and COM API.
...
It is possible to change a NSString color by letter?
For example, if you have NSString *A=@"ASDFGH";
show in UILabel ASD with red and FGH with blue.
And another question..
If I have a NSString, can I access the letter I want?
For example, in NSString *A=@"ASDFGH"; how can I know what is the second letter which is S, or the third, whi...
Hello everyone !
My problem is that when I launch the "First Foundation Client" from the SDK I get an error at runtime which looks like
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerComponent' defined in class path resource [alfresco/core-services-context.xml]:...
I'm trying to develop an application using UIWebView. The app is loading remote URL's, so in order to make it quick I want it to use the images included in the application bundle. I was wondering if there is a way to do it without forcing the application to manually replace the address of each image to point into local resources?
...
hi i create a custom keyboard , now i don't know how can implement Space ,Back space , Enter ..
Thank you .
...
I'm trying to get a UISplitViewController working with an iPad app.
I have the table view controller linked up under the Master pane and a plain UIView under the Detail view.
I also have [window addSubview:splitView.view]; in my code.
For some reason I just get a white screen even though the table view controller code is properly code...
Hello, I've been trying to put a UIWebView into my app, which is tableview based. When the user selects a row, I want the new xib to load, but this one with a UIWebView on it. From all of the tutorials I've seen, you can only put a UIWebView on the MainView.xib. Can someone please tell me how to put a FUNCTIONING UIWebView somewhere othe...
How do I obtain the Natal SDK? Where to take it from (google had not given me lot of help)
...
I keep on adding a UINavigationBar to one of my iPad app's nibs and it doesn't appear neither in portrait nor landscape mode. Thanks!
...
Does anyone know of any Java SDKs/libraries for communicating via the TL1 protocol that are opensource?
...
I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to import pictures from the photos storage to the canvas within the uiwebview.Its built on Html,javascript and css.Wou...
Hi there,
Compiling my application works—everything is fine. The only errors I get are by deprecated functions (setText).
The only problem is now, is that when I tap on a cell in my table, the app crashes, even though it's meant to push to the next view in the stack.
Any solutions are appreciated, if you need any code, just ask.
Also...
I'm using Xcode 2.5 on Mac 10.4.11 PPC. javac -version returns 1.5.x yet when I imported my source code and tried to build it in Xcode, I get errors all over because generics, annotations, and for-each loops are not supported in -source 1.3.
I thought I found the setting to change the source version in Xcode in the above but it doesn'...
So far Ive managed to download and install the SDK and its in my PATH. Problem now is that I can't run "android update sdk" since it expects to be connected to a display and Im connected to a remote headless server through ssh (its a build server so there's no desktop env). Is there a command-line option for the android tool that tells i...
In my iPhone OS application I want (need) to watch for chances in the device orientation in order to rearrange certain portions of the screen. The approach I used was to use GRect frame = [UIScreen mainScreen].applicationFrame to get the screen size, and from there calculate the size and / or positioning of other controls. (I also tried ...
Hi there,
I'm beginning in iPhone/iPad game dev and I'm searching to set up my learning path.
The basic features I would like to learn (after the basic SDK iphone components programming) are :
using a board like interface where I can move pawn with my fingers
detect where the pawn was moved and triggers events in the game
The board wi...
I have a situation where the only way to generate a certain datafile is to print it manually to FILE: under Windows and save it in a file for further processing.
I would really like to have a small stand-alone program which embeds this binary printer driver so I can run it from a batch file and have it generate that binary file for me, ...