plist

CFBundleDocumentTypes & UIFileSharingEnabled issues

▼魔方 西西 提交于 2019-11-30 05:46:30
Has anyone gotten UIFileSharingEnabled or CFBundleDocumentTypes to work? I added UIFileSharingEnabled as true to my plist and used Apple's example from the link below for CFBundleDocumentTypes, but can't seem to get it to work. I don't see my app under file sharing in iTunes, and I do not get the option to open documents I registered in my app when I click on them in the mail.app http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html LCombs74 Carloe, Open your app-info.plist as a text file. The UIFileSharingEnabled

Entitlements.plist not created properly

你说的曾经没有我的故事 提交于 2019-11-30 04:57:29
reading the doc from apple I need to create an ad-hoc distribution app, and to do so I need the entitlements.plist. when i create a new entitlement, the value "get-task-allow" is not present, so I added by hand.. is right?? at the end the Entitlements.plist is this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>application-identifier</key> <string>$(AppIdentifierPrefix)$(CFBundleIdentifier)</string> <key>keychain-access-groups</key> <array> <string>$

Saving game score locally on iOS device…is security needed?

不羁的心 提交于 2019-11-30 04:02:06
Do I need to store the score with a hash, ie to protect it from being edited/cheated by a user? From my newb knowledge, the user is unable to view and manipulate this locally stored data, as plist files for example. Can anyone elaborate? [Edit] I'm storing scores locally and periodically uploading them to Game Center leaderboards. Even if the device is jailbroken I'd like to have security to prevent scores being manipulated by the user. What is a good approach? Pripyat I actually would do this: Save it in an NSDictionary and convert it to an NSData object. Now comes the cool part: Encrypt it

how to add and retrieve data from plist programmatically

陌路散爱 提交于 2019-11-30 03:26:21
问题 hello all I am new to objective c and i want to insert data dynamically/programmatically into plist.please help me.Here is my plist structure root |_Client1 |_report1 |_application1 |_application2 |_report2 |_application3 |_Client2 |_report1 Now i want to add and retrieve data dynamically to application1,application2 in my plist please help me 回答1: Reading content of .plist file .. NSString* plistPath = [[NSBundle mainBundle] pathForResource:@"league" ofType:@"plist"]; contentArray = [NSArray

Xcode 4.6 localization within plist file

戏子无情 提交于 2019-11-30 02:26:37
I have started adding more languages to a project of mine and got strings & graphics localized without much trouble. I have one last problem and it is with a plist file. This plist file holds default category names for the app and is filled with English strings in a dictionary. My question is: is there a way to localize a plist file? I though about adding localized strings to the plist but could not figure out how. I dont want to have to decide in code what plist file to take since the default plist file gets overwritten by the user upon first use. Localized Plist files Easier solution here

Creating a plist file programmatically

夙愿已清 提交于 2019-11-30 02:23:43
this question is regarding xcode objective c and iphone development: So I want to store an array in a new plist file and I know how to retrieve the file path and write the data into the file (at least I think I do) and all that jazz once the plist is created, but how do I actually create the plist file the first time the app is run or the first time I go to enter data into it? I want it to live in the documents folder of my app. I'm assuming this is pretty simple I just can't seem to find documentation on it. I ended up using NSKeyedValue there was a great tutorial here: http://vimeo.com

How can I use PlistBuddy to access an element of PreferencesSpecified by its property?

拈花ヽ惹草 提交于 2019-11-30 01:56:48
At the moment I'm using this code /usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:1:DefaultValue $productVersion" "Test/Settings.bundle/Root.plist" in script part of build phase to put product version in a read only field of the application settings. That field has position 1 (starting from 0) of the preferences array. I'm asking if it's possibile to use something more robust that 1 to access that field since position can be accidentally changed during development by me or by other developers. Can I access that element specifying it's identifier regardless of its position? To better

Use User-Defined build settings in custom .plist file

安稳与你 提交于 2019-11-30 00:15:15
I have different build configurations (Debug, Stage, Prod) defined for my app and I use User-Defined build settings: to set up Facebook login and other stuff in Info.plist file: In this scenario the $(USER_DEFINED_SETTINGS) notation does work. When I tried to set up Google SignIn , which requires using additional .plist file ( GoogleService-Info.plist ), and I used User-Defined settings in the same way I do in the Info.plist file, it doesn't work. How can I use User-Defined settings in custom .plist files? If I can't, how can I workaround this? It's NOT possible to use User-Defined settings in

Writing a new set of data to Plist instead of overwriting it

浪子不回头ぞ 提交于 2019-11-29 23:37:59
问题 I'm trying to get a plist to store multiple sets of data, but each time I save (using a button from an ActionSheet), it overwrites the previous set. I want to add multiple 'friends' and their data. I'm not too keen on using Core Data, so I'm wondering how you can do it with a Plist. Here is the code for the save button: NSMutableDictionary *friend = [[NSMutableDictionary alloc] init]; NSMutableDictionary *array = [[NSMutableDictionary alloc]init]; [array setObject:friendName.text forKey:@

Get fileSize of info.plist to prevent piracy

冷暖自知 提交于 2019-11-29 20:31:34
I'm trying to put anti-piracy code in my app. The previous answer to this (which I can't link to because of my member status - sucks) can be easily countered, since the "SignerIdentity" string can be looked for and replaced in the binary using a hex editor. Instead, checking the fileSize of the info.plist file and comparing it to a reference value sounds more solid (since the info.plist is getting modified here and there when cracking the app). How would I do that? I tried the following but it logs 0. NSBundle *bundle = [NSBundle mainBundle]; NSDictionary *mainDictionary = [bundle