title: How to add Button Style by using buttonWithType in Objective-C?
body: <p>I have added the button in storyboard like the following picture:</p>
  
  <p><img src="https://i.stack.imgur.com/3mimr.png" alt="enter image description here"></p>
  
  <p>I also have added the code in the header file as shown in the following code:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
      @interface ViewController : UIViewController &lt;UIPickerViewDataSource,UIPickerViewDelegate&gt;
  
      @property (strong, nonatomic) IBOutlet UIButton *Up;
      @property (strong, nonatomic) IBOutlet UIButton *Back;
      @property (strong, nonatomic) IBOutlet UIButton *Left;
      @property (strong, nonatomic) IBOutlet UIButton *Ok;
      @property (strong, nonatomic) IBOutlet UIButton *Right;
      @property (strong, nonatomic) IBOutlet UIPickerView *DeviceSelect;
  
      @end
  </code></pre>
  
  <p>I want to add the style for the <code>UIButton</code> in the .m file as shown in the following code:</p>
  
  <pre><code>self.Up = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  [self.view addSubview:_Up];
  </code></pre>
  
  <p>But it seems its not working. The <code>UIButton</code> didn't change anything.</p>
  
  <p>Did I miss something? </p>
  
  <p>I am new to iOS , Please teach me... Thanks in advance.</p>