I have a simple app I'm trying to make, and need some assistance (I'm new
)
Heres what I have so far:
ViewController.m
ViewController.h
In general, I just want to get the slider value, and use that to set the size of the text label.
Heres what I have so far:
ViewController.m
Code:
@implementation ViewController
@synthesize textSize;
-(IBAction)hello:(id)sender{
label.text =@"Sexy Beast ;)";
}
-(IBAction)food:(id)sender{
label.text =@"Bacon :P";
}
-(IBAction)size:(id)sender{
// NSString *textSize = [sender value:slider];
}
ViewController.h
Code:
@interface ViewController : UIViewController{
IBOutlet UILabel *label;
IBOutlet UISlider *slider;
}
@property (nonatomic ,retain) IBOutlet UILabel *textSize;
-(IBAction)hello:(id)sender;
-(IBAction)food:(id)sender;
-(IBAction)size:(id)sender;
@end
In general, I just want to get the slider value, and use that to set the size of the text label.