Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my ib action code

C#
//background colour
-(IBAction)ChangeColourBackGroundRed{
    _TheBackGround.backgroundColor = [UIColor redColor];
    [_TheBackGround setBackgroundColor:[UIColor redColor]];
}



this is my viewer.h code
C#
import <UIKit/UIKit.h>

@interface ViewController : UIViewController
//the browser
@property (weak, nonatomic) IBOutlet UITextField *SeachTextBox1;
@property (weak, nonatomic) IBOutlet UITextField *GoogleSearchTextbox1;
@property (weak, nonatomic) IBOutlet UIWebView *Webbrowser1;
@property (weak, nonatomic) IBOutlet UIButton *SplitANDunsplit;

//the bakground
@property (weak, nonatomic) IBOutlet UIWebView *TheBackGround;

//the options box
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *OptionsButton;
@property (weak, nonatomic) IBOutlet UIView *OptionsBox;

@property (strong, nonatomic) IBOutlet UISwipeGestureRecognizer *SwipingGesture;

@end


And i connecteted the first responder b=changebackgroundcolor to the buton that says red, its mean to change the background color to red, but it just dose nother, can some one please help me i don't understand why its not workng, it should work!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900