plist in Xcode creation

后端 未结 4 653
天涯浪人
天涯浪人 2020-12-11 23:46

When I am creating a simple application for plist shown in below link:

http://iosdevelopertips.com/data-file-management/reading-a-plist-into-an-nsarray.html

4条回答
  •  心在旅途
    2020-12-11 23:57

    Here is the final solution that i got for plist....

    When u are creating your plist file with first element as Array.. then its XML Contents will be as below:

    
    
    
    
        Root
        
            Firecracker
            Lemon Drop
            Mojito
        
    
    
    

    Here you are having unnecessary tag instead of which we should have as your root element must be Array... because u are taking in NSMutableArray object...

    so your plist file must be like this

    
    
    
        
            Firecracker
            Lemon Drop
            Mojito
        
    
    

    i have checked that its working fine....

提交回复
热议问题