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

  • Home
  • SEARCH
  • 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 6873843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:07:13+00:00 2026-05-27T04:07:13+00:00

I am using a UITableView in my application. I have the following questions: I

  • 0

I am using a UITableView in my application. I have the following questions:

  1. I need to know when a user selected a row. From what I gather, I need to write a class that implements the UITableViewDelegate. Then I need to override the RowSelected method. Is there anyway to do this in my controller (as opposed to creating another class). It seems like overkill. Something like myTableView.RowSelected += MyMethod(). I’m not sure why RowSelected is not an event in the first place…

  2. I want to clip the title of a UITableView (text in the header) on the left hand side (default is the right). I know you can set the LineBreakMode, but it seems like I have to do this in the GetViewForHeader method (creating my own UIView that is in the header). Is there a simpler way to do this?

  • 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-05-27T04:07:13+00:00Added an answer on May 27, 2026 at 4:07 am

    MonoTouch offers (close to) full bindings to the iOS SDK – i.e. some stuff already exists in the .NET base class library and are not duplicated (but we’ll add them if you need them, just fill a bug report in such cases).

    In general those bindings are very close to the original API (either C or Objective-C based) since:

    • the binding process is largely automated using the btouch tool supplied with MonoTouch (which you can use to bind your own ObjectiveC API);

    • it really helps porting existsing code, finding code samples and API documentation (Apple developer site, blogs, questions here on stackoverflow.com…)

    I’m not sure why RowSelected is not an event in the first place…

    Events, like .NET provides, do not exists in Objective-C. In many (but not all) cases MonoTouch added .NET-style events that allows you to avoid defining your own xxxDelegates types. In general the events are named On + the name of the delegate selector.

    Is there a simpler way to do this?

    In case of UITableView the (ObjectiveC) API is IMHO a bit confusing – but there’s an alternative: MonoTouch.Dialog. It makes working with tables much easier and has a .NET-friendly API.

    p.s. please try to ask only one question per entry since you can’t mark multiple anwers as accepted. It also help people who looks for similar questions/answers on the site.

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

Sidebar

Related Questions

I am setting the row height of my UITableView using following code [tableView setRowHeight:
I am using a UiTableView in our application.We have two tabs in controller one
I have a UITableView that fetches data from CoreData using FetchedResultsController and it registers
I am using following method in my application: - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath
I have been using UITableView and UIController in every screen of my application. It
I'm using a UITableView to show some data from an array. This array can
I have created a UItableView using the default Xcode template and configure it to
I am using a custom class as the delegate and datasource on a UITableView.
How do I have a UITableView be notified that the data it is using
I am using a Data.plist file to populate my UITableView/Navigation-based Application with data. it

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.