Hello,
My Obj-C theory is not as good as it should be, i have just started on Obj-C and xCode/IB, although i can work with these and use these statements/commands , i would like to know what its actually doing.
-(IBAction)sliderChanged: (id)sender
{
This is the line thats bit confusing to me (theory wise):
UISlider *slider = (UISlider *)sender;
in the first part
that second "*" is whats kind of throwing me.
°° ryan
My Obj-C theory is not as good as it should be, i have just started on Obj-C and xCode/IB, although i can work with these and use these statements/commands , i would like to know what its actually doing.
-(IBAction)sliderChanged: (id)sender
{
This is the line thats bit confusing to me (theory wise):
UISlider *slider = (UISlider *)sender;
in the first part
I see that we have assigned a new pointer called "slider", and i know this is a convenience method so i dont have to use alloc, but why do we use thisUISlider *slider
in the second part?(UISlider *)sender
that second "*" is whats kind of throwing me.
°° ryan