iOS Code Snippet Adding ListView Items

Discussion in 'iOS Code Snippets' started by Mashiane, May 27, 2015.

  1. Mashiane

    Mashiane Expert Licensed User

    ' for the bitmap use LoadBitMap method

    Code:
    Public Sub AddTwoLinesAndBitmap2(LV As TableView, sTitle As String, sDescription As String, img As Bitmap, sKey As String)
        
    Dim tc As TableCell = LV.AddTwoLines(sTitle, sDescription)
        tc.Bitmap = img
        tc.Tag = sKey
    End Sub

    Public Sub AddSingleLineAndBitmap2(LV As TableView, sTitle As String, img As Bitmap, sKey As String)
        
    Dim tc As TableCell = LV.AddTwoLines(sTitle, "")
        tc.Bitmap = img
        tc.Tag = sKey
    End Sub

    Public Sub AddTwoLines2(LV As TableView, sTitle As String, sDescription As String, sKey As String)
        
    Dim tc As TableCell = LV.AddTwoLines(sTitle, sDescription)
        tc.Tag = sKey
    End Sub

    Public Sub AddSingleLine2(LV As TableView, sTitle As String, sKey As String)
        
    Dim tc As TableCell = LV.AddTwoLines(sTitle, "")
        tc.Tag = sKey
    End Sub
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice