Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
StoryBoard に UIButton を作成し、この UIbutton の Outlet を作成し、Touch Up Inside のためにいくつかのメソッドを作成します。標準ボタンにはメソッド別名 TouchesEnded があります
たぶんそれはばかげた質問かもしれません.Xcodeは初めてですが、TouchesBeganでこのボタンをオンにするにはどうすればよいですか?
どうも
を作成し、ボタンを に接続しIBActionます。ボタンをタップすると、メソッドが呼び出されます。UIButtonIBAction
IBAction
UIButton
このような方法で、
-(IBAction)butttonTaped:(UIButton *) Sender { // connect to your button }