I'm writing an iPhone app. This app requires users to login on a remote web server which is using php + mysql. How can the server handle this? Using sessions? Cookies? unique IDs?
Any link/code/tutorial on how to do this would be great.
Thanks!
...
I wonder what the -(void)viewDidUnload is good for. Could I not just relase everything in -dealloc? If view did unload, wouldn't -dealloc be called anyways?
...
Firstly, the platform is iPhone and label.text changes the label displayed. Consider this scenario:
I've an array of integers. And I want to display it on the screen.
Here's my take on it:
-(IBAction) updateText: (id)sender {
int a[2];
a[0]=1;
a[1]=2;
a[2]=3;
for (int i=0; i<=10;i++)
label.text = [NSString stringB...
For some reason Xcode tells me that it doesn't find symbols as soon as I use something like kCAFillModeForwards. There must be a library or class that I have to include...but which one? The normal Core Animation stuff works fine like [myView beginAnimations...]. What's the trick to get the more sophisticated animation stuff to work?
I'v...
I have a car image in a UIImageView, with movement and rotation animations.
I have a tyre-mark image in a UIImageView, which i've added as a subview to the car.
This means that all the same movement and rotation animations apply to both.
What I want to do is leave a trail of tyre skidmarks.
Can anyone suggest a strategy on how to do th...
Are all these things basically the same? I did the exact same thing now with CAAnimation rather than using an simple UIView animation block. What are the big differences?
...
Hi there,
I'm currently building an iPhone app that will display data from an NSMutableArray called "stories". The array structure looks like so (via NSLog):
2009-07-20 12:38:30.541 testapp[4797:20b] (
{
link = "http://www.testing.com";
message = "testing";
username = "test";
},
{
link = "http://www.testing...
I am working on an iPhone application that has a UISearchBar which populates a table view. I have various options on my search that could be easily hooked into the 'scope' functionality. However, I really need to have two groups of buttons. One group would be 'scope' determining the type of search, and one group that indicates the ...
Example:
1) fade an uiview from alpha 0.0 to 0.2
2) fade back to 0.15
3) fade to 0.25
4) fade to 0.2
5) fade to 0.35
6) fade to 0.3
7) fade to 0.45
8) fade to 0.4
... and so on. each with a duration of 0.05 sec. The effect is a flashy appearing view. Just for fun.
Previously I did this with simple UIView animation blocks, where every n...
I'd like to have a better understanding of this parameter in
+ (id)animationWithKeyPath:(NSString *)keyPath
They just say: "The key path of the property to be animated."
In some example snippets I see things like:
CABasicAnimation *fadeInAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
CAKeyframeAnimation *animatedI...
Hello,
I was wondering if there is a method similar to UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo), that saves Videos taken from the iphone camera to the u sers Photo Albums... been trying to look for it in apple docs but havent found anything.
Thanks
...
Hi,
My application has a function which can export some data to a csv file, and then copied to PC. I am not sure what api to use to implement this function. Does anyone know about this? Thanks in advance.
...
I've seen this in a snippet:
animation.repeatCount = 1e100f;
my math classes are long time ago. So 1e100f would be a number with 100 zeros? So in this case the programer wanted to have infinite repeatCount?
...
I have this code. At the end of the values array, you can see I provide 0.5 for the opacity. But for some reason, when the animation stops, it flashes once again and then leaves the view completely transparent. What's wrong there?
CALayer *layer = self.layer;
CAKeyframeAnimation *blinkAnim = [CAKeyframeAnimation animationWithKeyPath:@...
I saved an image from a website by right clicking. The image was a UITabBar Imange and was supposed to to work on UITabBar but its just showing me a square when I run the application. Can Anyone Tell me why is it not working.
Interface builder do provide some images for UITabBar. Where are they stored and how can I access them.
...
Hi,
I'm currently working on an app that require that I have different UINavigationControllers - So I'm using a tab bar and attempting to use a UITabBar to swap between them so I have in the app delegate a bit of code like so:
// Setting up the views for the tab controller
Friends *friends = [[[Friends alloc] initWithNibName:@"Friends"...
Greetings!
I've added a UIActivityIndicatorView as a subview of a UITableView. The intent is to fade this view out once the underlying table has been refreshed with new data.
The problem is that the sections in the table view (e.g., A, B, C, etc.) appear to be added after the Activity Indicator appears, partially blocking the activity ...
This community has been tremendous help for me in many respects.
First time question (for me), and it's an easy one. I'm working through the iPhone SDK learning curve, at a good rate... but every once in a while, I come across a problem that, despite it's simplicity, is easier to ask and work on something else, then to spend another hour...
Let's say you have a game board where you have tiles, like those where its a picture and its scrambled but you have one empty tile. So you drag a tile around until you can reassemble the picture. You have a 3x3 or 4x4 (doesnt matter) matrix with one empty square.
example:
http://www.kirix.com/extensions/sliding-tile-picture-puzzle/
...
I am trying to develop a small application. In it, I need to detect the color of a pixel within an UIView. I have a CGPoint defining the pixel I need. The colors of the UIView are changed using CoreAnimation.
I know there are some complex ways to extract color information from UIImages. However I couldn't find a solution for UIViews.
I...