iphone - How to change the DisplayName of an iOS Application? -
i know there many answers related question, such like.
programmatically rename xcode project
renaming xcode 4 project , actual folder
etc.
but @ following code:
nsstring *plistpath = @"...../testingapi-info.plist"; nsmutabledictionary *dictionary = [[nsmutabledictionary alloc]initwithcontentsoffile:plistpath]; [dictionary setobject:@"mytestingapp" forkey:@"cfbundledisplayname"]; [dictionary writetofile:plistpath atomically:yes];
i changing name of apps icon above code,
changed name "mysuperapp => mytestingapp"
so, valid change using above code ? have fear of app rejection ?? want set changes through above code like, bundle identifier, bundle name..etc ?
is valid or not ?? using above code apple reject application or not ??
as rckoenes said correctly, won't work on device. bundle contents readonly, including info.plist. can not overwrite it.
to clarify: open info.plist file in xcode , rename whatever want. don't need code this. find yourprojectname-info.plist
file within xcode project.
Comments
Post a Comment