Search code examples
iosobjective-cnsarraynsdictionarynsindexpath

how to sort NSArray and access in NSString?


Below is the web API response I am storing in **NSArray**. How can I access in **NSString** based on index path?

Below is preview of image banner :

array(
    (
    "abc.jpg"
),
    (
    "abc1.jpg"
),
    (
    "abc21.jpg"
),
    (
    "abc2.jpg"
),
    (
    "abc3.jpg"
),
    (
    "abc4.jpg"
),
    (
    "abc5.jpg"
))

Solution

  • NSString *logo = [[dataarray objectAtIndex:index] objectAtIndex:0];