I've been looking at the Stanford University iphone videos on iTunes U. And saw the teacher trying to do something similar to this code but he realised and said it didn't work though I didn't get why:
- (IBAction)flashPressed{
if (window.backgroundColor == [UIColor magentaColor]){
window.backgroundColor = [UIColor redColor];
}else {
window.backgroundColor = [UIColor magentaColor];
}
}
Objective-C, windows based application. Not sure what else you need to know.
Suppose you have three points of contact on the iPhone screen and one of those touches moves...
The touchesMoved method will be invoked and the [[event touchesForView:self] count] will be equal to '3' because there are three touches for the event, but how can you distinguish between the touches? For example - find out whether it was the first, second, or third touch which moved?
Thanks.
i have developed a mobile version of a page and it uses some mobile specific java and css
i have come across many solutions to point mobile/iphone users to that specific page and desktop users to original webpage.
but what i want is that i get both things in one page and when user is on mobile that certain part of javascript and css run while on same page
without user being redirected to other pages.
is this possible
hi all,
i am new to Iphone programming.
I want to copy a folder(which contains subfolder hierearchy and files) from resourse folder to application folder. i have no idea about this.
Please suggest how can i do this task?
Thanks
Hi,
We want to create an application that downloads a mp3 file and then starts to play it.
Has anyone an idea of how to download the mp3 file from an url and then store it, either on the iphone or in the application (depending on what is possible).
I am recording audio in iPhone ..
This is my Audio Queue object
AudioQueueNewInput(
&audioDescription,
recordingCallback, self,
CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0,
&mInputQueue
);
But i want to run this in a seperate RunLoop..How to create custom CFRunLoop ?
Please help me..Thanks in advance.
Hi, I am trying to set a cookie and also check if it is there, does anybody have any sample code for this? All I found was this, but it would be helpful if I could see an implementation example. http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookieStorage_Class/Reference/Reference.html
Is this possible to play any video file without using of MPMoviePlayerController in iphone.......?
If possible means plz help me .
Thanks in advance.....
Is it possible to have a single iPhone screen with its view loaded from a xib by that screen's UIViewController, but then another UIView within that screen with content loaded from a separate xib file? If so, is it possible to have that nested view's events handled by a separate custom UIViewController subclass from the rest of the screen? If both of these things are possible, are they also advisable?
I try to draw rain and snow as particle system using Core Graphics.
In simulator rendering proceeded fine but when I run my app on real device rendering is slow down.
So, advise me please approaches to increase particle system drawing performance on iPhone.
May be I should use OpenGL for this or CoreAnimation?
I'm new to iphone development. i want to write an app that has 3 buttons. touching each will trigger a sound.
1.wav
2.wav
3.wav
Can someone give me some hints and guide me to the right path?
this is a follow on from this question and the link given it seems that when an app is updated all of the files in the documents directory are copied into the updated apps documents directory and also anything in Library/Preferences. Whats the best way to simulate this for testing purposes?
Just copy the files in ApplicationSupport/iPhone Simulator etc? or has anyone developped any funky techniques for testing this.
hi all...
i want to post a string to the facebook wall from my iphone app like.. sharing the status in facebook.
presently i am doing like..when i press a button after logging in, i am getting a webview with the string i want to post and with buttons 'post' and 'cancel'.
but i want like.. when i click the first button only(after logging in, with out the facebook webview) the string should be posted to the wall.
Hi,
I want to write a simple text editor for iPhone with syntax highlighting support for c,c++.
But the problem is, I dont't know how to do this. The first solution I was thinking about, was to go over the text and highlight keywords when the value of the UITextView has changed, but I think that if I got more than 1000lines of code that doesn't work very well.
Thanks for help!
Using Objective C, cocoa touch framework.
I have few image files in my iphone application. Some file names are in english and some are in japanese like "????????Icon .png"
I'm creating views programatically and not using IB.
My code is not able to read files with name in japanese language.
How can I get this work done.
Is there any kind of PHP script that has a user database with custom tables that I can access through a RESTful API? I am wanting to create an iPhone app that interacts with the user database.. such as register, login, update info...
Any ideas? Thanks!
Hi Everyone
I just wanted to say a big thank you to everyone here as my first ever iPhone app is now in the app store! I couldn't have done it without all the help from everyone here. It's called zigAroute if you want to check it out.
Thanks
Cheryli
Hello everyone
I hope to load the videos in ipod/iphone library and list in UITableView like app 'videos'.
the codes show below, but it always cause crash
UIImagePickerController *picker=[[UIImagePickerController alloc]init];
picker.sourceType= UIImagePickerControllerSourceTypePhotoLibrary;
picker.mediaTypes = [NSArray arrayWithObject:kUTTypeMovie];
picker.delegate = self;
Welcome any comment
Thanks
interdeb
Hi Guys,
In my iPhone app, I have many ASCII arts which I need to insert into the database.
I am using the simulator and pasting the textpic in the textview to insert the ASCII art to database.
Here the clipboard of simulator once pastes the art properly but when I copy another art then too it pastes the previous art into textview.
How to solve this problem?
Is there a work around for this or any better approach?
Please Help and Suggest
Thanks
Hi,
I would like to know which type of persistent store would be most appropriate in what situations, like how can I decide where to use core data, property list or archives for my iPhone application.
Thanks
Hi,
iAd seems to require iphone os 4.0, so I install the new beta ver xcode and sdk.
It works.
But The previous sdk disappear.
Now, the new build app (with iAd) is also retro compatible with 3.1.x? Or with iAd I have to renounce to retro compatibility?