Skip to main content
added 112 characters in body
Source Link
yazh
  • 701
  • 10
  • 15

Actually look at the log value, it has array and set of values.. i can't find whether it is in what form..

Can anyone help me to find the solution??

Can anyone help me to find the solution??

Actually look at the log value, it has array and set of values.. i can't find whether it is in what form..

Can anyone help me to find the solution??

added 1442 characters in body
Source Link
yazh
  • 701
  • 10
  • 15
pageCat (
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/4.jpg";
    name = "PVC Flexible Wires";
    page =         (
                    {
            id =                 {
                text = 1;
            };
            img4 = "http://xxxx.in/images/page_img/75x75/1.jpg";
            name = "SINGLE CORE FLEXIBLE WIRES ABOVE 6 SQMM";
        },
                    {
            id =                 {
                text = 72;
            };
            img4 = "http://xxx.in/images/page_img/75x75/72.jpg";
            name = "SINGLE CORE FLEXIBLE WIRES BELOW 6 SQMM";
        }
    );
},
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/3.jpg";
    name = "Bare Copper Wires";
    page =         {
        id =             {
            text = 29;
        };
        img4 = "http://xxx.in/images/page_img/75x75/29.jpg";
        name = "Tinned Copper Fuse Wires";
    };
},
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/48.jpg";
    name = "Properties of Wire";
    page =         {
        id =             {
            text = 85;
        };
        img4 = "http://xxx.in/images/page_img/75x75/85.jpg";
        name = "Wires - Normal, HR - PVC, FR, FRLS & Zero Halogen";
    };
}

)

pageCat (
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/4.jpg";
    name = "PVC Flexible Wires";
    page =         (
                    {
            id =                 {
                text = 1;
            };
            img4 = "http://xxxx.in/images/page_img/75x75/1.jpg";
            name = "SINGLE CORE FLEXIBLE WIRES ABOVE 6 SQMM";
        },
                    {
            id =                 {
                text = 72;
            };
            img4 = "http://xxx.in/images/page_img/75x75/72.jpg";
            name = "SINGLE CORE FLEXIBLE WIRES BELOW 6 SQMM";
        }
    );
},
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/3.jpg";
    name = "Bare Copper Wires";
    page =         {
        id =             {
            text = 29;
        };
        img4 = "http://xxx.in/images/page_img/75x75/29.jpg";
        name = "Tinned Copper Fuse Wires";
    };
},
    {
    img3 = "http://xxx.in/images/page_cat_img/75x75/48.jpg";
    name = "Properties of Wire";
    page =         {
        id =             {
            text = 85;
        };
        img4 = "http://xxx.in/images/page_img/75x75/85.jpg";
        name = "Wires - Normal, HR - PVC, FR, FRLS & Zero Halogen";
    };
}

)

Source Link
yazh
  • 701
  • 10
  • 15

How to get values from nested array/ dictionary iOS 7

I fetch values from dictionary and need to display in UITableView, but everything works fine.

On some spot it stops running and shows thread

-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0xbfa7670

The code below, which I used to fetch value..

[NSString stringWithFormat:@"%@",[[pageCat1 valueForKeyPath:@"img3"] objectAtIndex:indexPath.row]]

My values are fetched properly in dictionary but lags to display it?

Can anyone help me to find the solution??

Thanks, Yazh