Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8405377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:50:24+00:00 2026-06-09T22:50:24+00:00

Im looking at some source code written by someone else and its intrigues me

  • 0

Im looking at some source code written by someone else and its intrigues me to see this line:

@interface UITableView (MyTableViewGestureDelegate)

Now I have previously seen only this:

@interface MyTableView : UITableView <MyTableViewGestureDelegate>

so I am a lil confused.

Any ideas as what to what im looking at?

Ben

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:50:26+00:00Added an answer on June 9, 2026 at 10:50 pm

    It is a category declaration.

    A category allows you to add methods to an existing class—even to one
    for which you do not have the source. Categories are a powerful
    feature that allows you to extend the functionality of existing
    classes without subclassing. Using categories, you can also distribute
    the implementation of your own classes among several files. Class
    extensions are similar, but allow additional required APIs to be
    declared for a class in locations other than within the primary class
    @interface block.

    The declaration of a category interface looks very much like a class interface declaration—except the category name is listed within parentheses after the class name and the superclass isn’t mentioned. Unless its methods don’t access any instance variables of the class, the category must import the interface file for the class it extends:

    General Syntax:

    #import "ClassName.h"
    
    @interface ClassName ( CategoryName )
    
    // method declarations
    
    @end
    

    Note that a category can’t declare additional instance variables for the class; it includes only methods. However, all instance variables within the scope of the class are also within the scope of the category. That includes all instance variables declared by the class, even ones declared @private.

    There’s no limit to the number of categories that you can add to a class, but each category name must be different, and each should declare and define a different set of methods.

    Please check the link and Example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking though some source code from a third party and am repeatedly
Recently I was looking at some source code provided by community leaders in their
I have been looking through some code on an open source project recently and
Looking at some assembly code for x86_64 on my Mac, I see the following
Is there some open source code already written out there somewhere that will accept
Not really an immediate source code question per se....but Im looking into doing some
I was looking at some source code, specifically for Paypal IPN, and I noticed
Looking on some source code I've inherited, there's a snippet of code that calls
i am looking for some source code for a JQgrid html helper?
I am looking over some open source code and they listed some strange instance

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.