I am starting to learn to use UIView animation. So I wrote the following lines:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[UIView setAnimationRepeatCount:2];
[UIView setAnimationRepeatAutoreverses:YES];
CGPoint position = greenView.center;
position.y = position.y + 100.0f;
position.x = posit...
How do you check if the user browsing my website is using an iPhone, and then redirect the user to another URL?
...
Hi all,
The problem occurs when trying to select the code signing identity. In current 3.x projects on selecting the code signing identity it displays a scrolling popup with all the current valid identities. In older projects it doesn't do this.
So I suppose it is simpler to just copy over to a new iPhone project of the same name. ...
I'm trying to play a sound on touchesEnded but I'm having a problem. There are multiple objects that get moved around, so if the below code holds true when any object is moved, it constantly plays the sound. How do I only play it once?
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
if(CGRectContainsRect([image1 ...
Hi all,
This is a bit odd, but is it possible to use an NSCalendar (or any component, for that matter) to figure out what the date of the next "first tuesday of the month" would be?
For example, today is Thursday March 25, 2010. The next "first tuesday of the month" would be on April 6. Likewise, if I were looking for the next "first...
I am following This Tutorial on installing MGTwitterEngine on my MAC osx 10.6.2.
I am stuck on this step:
sudo port install cmake
it gives me the following error:
dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found. Did find:
/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: no matchi...
Is there a UIView method that is called called after drawRect is completed?
...
I have a tab-based iPhone app where I want to increase the perceived start-up speed with a launch image. As defined by the iPhone HIG, the launch image is a screenshot of your app (called Default.png) that is displayed immediately and looks very similar to the app's first screen (e.g., the screenshot of an empty table when the app displ...
Hi
I am making a call to verifyReceipt to validate an in-app purchase but am getting a very strange response (the response is b)
The same code worked till some time back. But I stopped the app debugging while the trans was being verified at one point. From there on, the only response I get is b. I checked the code and it has nothing wr...
Hi,
I need to create an animated Plasma/Lava like effect, that resembles this image:
http://dl.dropbox.com/u/1977230/example.png
but slightly animated.
I have absolutely no idea how to actually do those kind of effects on the iPhone.
This would have to run as an UIView background, with some elements on top. Would that be feasible?
A...
I have an app with a tab bar, and nav controllers in each tab. When user shakes the device, a UIImageView appears as a child view in the nav controller. But the UIImageView must contain a special image, depending on the device's current orientation.
If I write just
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrienta...
I have this working but I don't think it is working correctly so I just wanted to get your feedback. I am trying to display a screen that has two buttons - one that takes you to a login screen and the the allows you to register.
II am testing in the appDelegate if they are logged in and if they aren't I am showing the signLogIN view....
I'm working on an iPhone app that will use HTTP Live Streaming. Using Apple's provided tools (particularly mediafilesegmenter), I'm able to successfully segment and serve an archived video. Now I want to test Live Streaming stuff. I don't own any sort of camcorder, I just have my iSight built-in to my Mac. Is there a way to leverage this...
I have added the <QuartzCore/QuartzCore.h> to my Frameworks folder in my iPhone project and added the #import "<QuartzCore/QuartzCore.h>" statement at the top of a custom UIView class.
However the custom UIView class gives me a "No such file or directory" compliation error in relation to the <QuartzCore/QuartzCore.h> framework. Is ther...
In the networking between the iPhone and desktop versions of our application, the iPhone sends over the device name for use on the desktop. The problem is that some of the beta testers have tildes (`) in their device names. For some reason when this is in the device name it prevent the socket from sending the actual string data.
I've tr...
Hello.
I have a simple app where the only view controller has an outlet to a UITabBar. It also implements UITabBarDelegate and is set as the delegate for the UITabBar:
@interface TheMainViewController : UIViewController <UITabBarDelegate>
{
IBOutlet UITabBar *theTabBar;
}
I implemented the following method Which gets called wh...
I have an image view that I'm wanting to be able to move around, and pinch to stretch it. It's all working, but it's kinda jumpy when I start to do any pinch movements. The position will jump back and forth between the two fingers.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
startLocation = [[touches anyObje...
Hey,
I found a tutorial online that extends that Apple QuickStart Application which is the basic Address Book Application and another that returns the first phone number regardless of what phone number was clicked. I want to display only the selected phone number in the label. The label is called phoneNumber:
- (BOOL)peoplePickerNaviga...
I am creating an App that pulls data from a file on my server. That file gets data from my database, based on GET values that are passed through the URL.
I would like to keep this feed closed - that is, I don't want people finding the datasource and reading the data on their own. I considered sending an alphanumeric id along with the u...
Hey Guys,
I have a asp.net website and I am accessing that web service from my iPhone app to get data.
The WCF web service produces data as JSON.
I want to put some kind of authentication on the WCF. What you you guys recommend?
Thanks
...