iphone - how to add normal text to settings bundle

后端 未结 4 1922
面向向阳花
面向向阳花 2021-02-02 09:35

I\'ve 3 groups created in iphone settings bundle Root.plist file. Its showing fine.

But for every group, i want to add some description. It will be something like follow

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 10:07

    Theres a type called PSChildPaneSpecifier which shows a new page of string content. So update your Root.plist like this:

        
            Type
            PSChildPaneSpecifier
            Title
            LicenseAgreementTitle
            File
            License
        
    

    And create a License.strings file in your locale folder inside the Settings.bundle:

    "Part1": "First paragraph"
    "Part2": "Second paragraph"
    

    And you need a License.plist next to Root.plist too to list your parts:

    
    
    
        
            StringsTable
            License
            PreferenceSpecifiers
            
                
                    Type
                    PSGroupSpecifier
                    FooterText
                    Part1
                
                
                    Type
                    PSGroupSpecifier
                    FooterText
                    Part2
                
            
        
    
    

    I found this in the Apple Remote application by extracting the ipa file.

提交回复
热议问题