Powered by
Powered by
HuntMyIdeas-Inspire You To Make It Happen
Follow
   Me
  • Blogs
  • About Me
  • Home

What is the difference between IBOutlet and IBAction in iOS ?

8/19/2018

0 Comments

 
IBAction and IBOutlet are macros defined to denote variables and methods that can be referred to in Interface Builder.
​

​IBAction and IBOutlets are used to hook up your interface made in Interface Builder with your controller
Read:
iOS Interview Questions And Answers Part13
Basic iOS interview Questions And Answers 
Top 5 Frequently Asked iOS Interview Questions And Answers.
Top  Interview Questions And Answers in Objective C
If you're not going to be using Interface Builder at all, then you don't need them in your code, but if you are going to use it, then you need to specify IBAction for methods that will be used in IB and IBOutlet for objects that will be used in IB.

IBOutlet 

Special instance variable that references another object. A message can be sent through an outlet. Interface Builder recognizes them. An IBOutlet is for hooking up a property to a view when designing your XIB. 

-IBOutlet resolves to nothing, but they signify to Xcode and Interface builder that these variables and methods can be used in Interface builder to link UI elements to your code.

-An IBOutlet is for hooking up a property to a view when designing your XIB

-An IBOutlet lets you reference the view from your controller code


IBAction 

A special method triggered by user-interface objects. Interface Builder recognizes them. An IBAction is for hooking a method (action) up to a view when designing your XIB.

-IBAction resolves to void .

- An IBAction is for hooking a method (action) up to a view when designing your XIB.

An IBAction lets the view call a method in your controller code when the user interacts with the view.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Enter your email address:

    Delivered by FeedBurner

    RSS Feed

    Archives

    December 2019
    August 2018
    January 2018
    December 2017
    November 2017
    October 2017
    August 2017
    April 2017
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014


    ​​Categories

    All
    Affiliate Marketing
    Alexa Rank
    Apple's Latest Updates
    Blog Tips
    Cocos2d X
    Cocos2d-x
    Google AdSense Tips
    Grab-some-ultimate-ideas
    How-to-create-a-twinkling-star-background-effect-in-ios
    In-App Purchase Tutorial In Cocos2d-x (C++) Using SDKBOX
    Ios Interview Questions And Answers
    IOS Multiple Choice Questions And Answers
    Objective C
    Online Business
    Python
    Secrets To Effective IPhone App Marketing
    SEO Tips
    Swift Interview Questions
    Swift Tutorials
    Top 10 Articles Objective C
    Top 10 Articles-Objective-C
    Top 10 Popular Movies Ever
    Top 10 Popular Things To Know
    Top 10 Ultimate Issues Xcode
    Top 400 IOS Interview Questions
    Top IOS Sample Projects To Learn From
    Top Secrets To App Marketing
    UICollectionView
    Unity 3D
    Xcode

WELCOME TO HUNTMYIDEAS

Picture
I am Jitendra Gochhayat,an iOS Developer,Designer,blogger,
​from Odisha,India.
I write about ​​​blog tips and,
Make money online Tips,
​Objective C tutorials
SUSCRIBE TO NEWSLETTER

    Subscribe to this blog and receive notifications of new posts by email

Suscribe
Picture
Picture
Picture
Picture
Picture
HuntMyIdeas-2016 Powered By Weebly
Picture
Powered by Create your own unique website with customizable templates.
Powered by
Powered by