1

I've tried to google this question, but didn't find what i'm looking for.

Im looking for some code examples for xamarin ios and very often meet constructions like this:

[cell setIndentationLevel:SOME_NUMBER];
[cell setIndentationWidth:SOME_OTHER_NUMBER];

And like this:

-(NSInteger)tableView:(UITableView *)tableView 
            indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return intOffset;  
}

How to use them? And can they be used in Xamarin studio for ios apps?

Vadim
  • 3,855
  • 2
  • 17
  • 22
  • Please link to where you saw those examples for xamarin ios. – weston Feb 28 '17 at 12:00
  • 1
    That looks like Objective C. Xamarin studio uses C#, but you can write native bindings in Objective C, but you would first need to learn it. This isn't a very good question as it's not a programming problem, and it's very open. Please see http://stackoverflow.com/help/how-to-ask – bj7 Feb 28 '17 at 12:02
  • to weston: http://stackoverflow.com/questions/30060373/update-height-constraint-programatically – Vadim Feb 28 '17 at 12:07

1 Answers1

3

This is Objective-C and not C#. It is a different programming language. You'll need to "convert" it to C# to be able to use it in your app. (Assuming those are UITableViewCells), the C# equivalent would be:

cell.IndentationLevel = SOME_NUMBER;
cell.IndentationWidth = SOME_OTHER_NUMBER; 

You need to do more research/learning into Objective-C, C#, and iOS if you're not able to tell the difference between those two languages and you want to do iOS development.

valdetero
  • 4,624
  • 1
  • 31
  • 46