Possible Duplicate:
objective c difference between id and void *
For example, an UIView animation delegate callback method has this argument:
context:(void*)context
Why not simply id? I always pass nil if I don't care about an context. But when I want one, I pass the object. What's the difference? Why did they prefer void* ...
hello, how is it possible to add an image to be set inside an uiscrollview using just interface builder and no code. i tried simply adding an image into the scrollview and it didnt work. i know this is a really simple answer however i didnt find any IB related help on achieving this
...
I think have decent experience working with iPhone development.
as much I know.. I did set up the delegate..
I have from top to botton
UIView --> UIScrollView--> UITextView
I tried everything... to get the event scrollView to fire the scrollViewDidScroll event.
is anything wrong with the structure..
there not much of the code to post...
I need to display a 20 x 15 grid of images on an iPad. Each image is 50px x 50 px.
I am using [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"name" ofType:@"png"]] to do this but am running into performance issues. The application lags heavily. There are 14 different types of images, all 50x50 in png format.
...
Hi,
I'm running into problems when dealing with a large amount of UIButtons in my interface. I was wondering if anyone had first hand experience with this and how they did it?
When dealing with 30-80 buttons most simple, a couple of complex do you just use UIButton or do something different like drawRect, respond to touch events and g...
how can i check if a textfield contains a specific value i tried using the
if(x.text = @"hello")
however this would work since it would always show me the alertiview i had below this code. I think i am missing something from my comparision however i am unsure.
...
Hi,
I am playing an audio file in a viewcontroller inside an UITabBar using AVAudioPlayer. So when user clicks a different tabbar item the music is not stopped. I tried adding stop method in viewwilldisappear. But it's not responding. How can I stop my audio when user clicks a new tab bar item.
ente
AVAudioPlayer *audioPlayer;
This i...
I have two queries...
I am about to write a custom DatePicker where in could control the number of components as well. Like Date and Month only and no Year.
Q1) Do you have any custom code already available which takes care of leap year logic?
Q2) I thought of writing separate arrays of days... but writing numbers from 1 to 31 and then ...
Hi all,
I am trying to get the following code from a book to work. It animates the layer of a UIImageView called the Chicken :
[CATransaction setValue:kCAMediaTimingFunctionEaseInEaseOut forKey:kCATransactionAnimationTimingFunction];
[CATransaction setValue:[NSNumber numberWithFloat:1.0] forKey:kCATransactionAnimationDuration];
theChic...
In my normal tableview I got a bunch of switches and segments, and I dont wont them to be selectable, so I set:
tableView.allowsSelection = FALSE;
Now one of the cells, I wont to point to a new view, and thereby make it selectable. But there's no cell.allowSelection or anything, how do I solve this. How do I make it, so that it can be...
Hi,
I have some google appengine java servlet that I access from some iphone 4 app.
The servlet writes the response as XML. I have set the content type of the servlet response to "text/plain". If I fetch the servlet page using Chrome, the response is gzipped (1 Kb). But, if I fetch the servlet using my iphone app, the response is 19 Kb...
I have the following array.
NSArray *arrayDisplay = [[NSArray alloc] initWithObjects:@"Daily",
@"Weekly", @"Monthly", nil];
I need to use it in two views, I'm concerned that I may make changes and forget to change the other in the future. So I'd like to declare it once and reuse it.
How should I do this?
...
Hi all
i want to display the table view in alert view. This table view contains segmented control.
these segmented controls are for on/off the audio, image, text. so there will be 3 cells with segmented controls.
how to do this
please help me out
Thank u
...
Hi,
I'm new to the iPhone SDK and I wonder, where I get some standard buttons, that a lot of applications use. I wanted to have that button:
http://4.bp.blogspot.com/_fAv06gZ6FPU/SumCCleuwpI/AAAAAAAAAFs/0mtPapm8EFg/s1600-h/Screen+shot+2009-10-29+at+11.47.20.png
in an UIToolbar. Any advices please? :-)
Thanks in advance...
...
Hi all, as the tilte is possible autoimport or there is an option in xcode that allow to import all callbacks of a delegate(as MKMapviewdelegate or other)?
I use this option in Eclipse (Java) to import getters/setters methods to access class variables.
Thanks in advance.
...
I have a UINavigationController with two UIViewControllers on it (A and B). From A, I push B onto the stack. Then the user re-orients the device. I need to move some things around the screen (buttons, etc) to be visible in the new orientation on A.
I find that -shouldAutorotateToInterfaceOrientation is getting called on both A and B ...
I have a UIToolbar with an edit bar button on it. This is defined as
self.toolbarItems = [NSArray arrayWithObjects:self.editButtonItem,nil];
The edit bar item shows up, and but when i tap it, nothing happens, it does not change to Done and none of the editing controls show up.
I have implemented the following methods as i would like...
I'm working on a tool that helps to automate Browser based products. On of the use case I encountered is to handle popups either from application or from Safari. I would like to provide an API where a user can click OK when a popup prompts. Can I do it through JS or is it possible through any Apple API? And one more thing, how do I know ...
Hi guys
I'm new to iPhone programming, and in fact, programming of any kind. For nearly a year now I've been teaching myself C, and then Objective-C, and for the past few months I've been making an iPhone game, so far of which i'm pretty proud of.
Anyways I've hit quite a stumbling block and I've been trying to figure it out for a whil...
I am wanting to calculate total elevation loss and gain at the end of recording Core Location data. I am having a hard time thinking of the math for this one.
Say if I started at 600 feet and I go up and down during the tracking, how would I calculate my elevation gain and loss?
Ideas?
...