plist

Custom font for iPad - iOS 3.2 isn't working

此生再无相见时 提交于 2019-12-04 06:37:32
问题 I'm building an iPad-Only application. I need to use a custom font with some labels, so I added them to my project. They appear in my application target for "Copy Bundle Resources". I also added their names to my App's -Info.plist file: <key>UIAppFonts</key> <array> <string>font1.ttf</string> <string>font2.ttf</string> <string>font3.ttf</string> <string>font4.ttf</string> </array> Even so, when I try to set the font of my labels, it seems to just use the default. I haven't been able to figure

iOS Enterprise Deployement: Clicking on itms-services link results in “Cannot connect to [domain]” error

社会主义新天地 提交于 2019-12-04 06:09:02
In an effort to deploy an enterprise iOS app, I've created the following link: Unencoded version (for easy reading): <a href="itms-services://?action=download-manifest&url=https://example.com/api/distribution/ios?token=abc123">Download</a> Encoded version: <a href="itms-services://?action=download-manifest&url=https%3A%2F%2Fexample.com%2Fapi%2Fdistribution%2Fios%3Ftoken%3Dabc123">Download</a> The link is properly encoded, as discussed here and here . Assuming the user's token is valid, a .plist file is returned via SSL, as discussed here . The URL of the .ipa file referenced in the .plist file

How to write the data to the plist

喜你入骨 提交于 2019-12-04 04:31:27
问题 HI can u send me sample code to add the data to the .plist. .my plist was in this format as follows.kindly help me out <?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"> <array> <string>http://localhost:8888/sample</string> <string>http://localhost:8888/sample</string> </array> </plist> i wil send the url string from the implementation code.kindly help me in this pls.. -(IBAction

Property List Editor after installing Xcode 4

末鹿安然 提交于 2019-12-04 04:20:58
I cannot find where it is after I installing Xcode 4. Does any one know where it is ? Edit: I had installed another app for editing XML file. It is named XMLEditor and located here . Because I need to edit a plist file with an extension which is not end with .plist , so finally I googled another solutions about XML editor. In XCode 4 the property list editor is integrated. It should appear in the XCode application. I put together a frankenstien version of the Property List Editor a while ago. Its totally self contained and should work as a stand alone app. Find it here: https://www.dropbox.com

Parsing .plist Files to plain XML C#

允我心安 提交于 2019-12-04 04:01:45
I'm trying to read my Apple Safari history with c#, which is stored in a plist file, however I always get an error and I'm not sure what the correct way is to do it. The code I tried to execute is this: XmlDocument xmd = new XmlDocument(); xmd.LoadXml(@"C:\Users\Oran\AppData\Roaming\AppleComputer\Safari\History.plist"); and I always get the following error: "Data at the root level is invalid. Line 1, position 1." Does anyone know whats wrong with this code and recommend what is the best way to read plist files? It looks like that Apple Safari history.plist is binary plist. I've found a great

Android parse Plist file

六眼飞鱼酱① 提交于 2019-12-04 03:47:05
Hello Im trying to parse an plist file that contains array of dict's. Im trying to do this using xmlwise . The content of the plistfile is here So far I only have this in my activity and im getting the content of the plistfile, but how to parse the content into an arraylist? Map<String, Object> properties = null; try { InputStream inputStream = getResources().openRawResource(R.raw.first_5); BufferedReader br = null; try { br = new BufferedReader(new InputStreamReader(inputStream)); StringBuilder sb = new StringBuilder(); String line; while ((line = br.readLine()) != null) { sb.append(line); }

Write JSON Response to .plist File

本秂侑毒 提交于 2019-12-04 03:00:47
Frustration on the Top !!! I am getting some JSON Response from the Service and I want to store it in the .plist file for Future Reference. I am unable to save my JSON Response to .plist File . I think it's due to some null values into the Response. Note : I confirmed that the Response is in JSON Format using jsonparser . My Code : NSError *error; NSDictionary* json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; NSDictionary *dictResult = [(NSDictionary*)json objectForKey:@"myKey"]; NSLog(@"Result Dictionary :: %@",dictResult); NSURL *cacheDir = [[

Not showing smily ( Emoji ) in in UITextView in iOS?

给你一囗甜甜゛ 提交于 2019-12-03 23:11:37
问题 I have stored all uni-codes(emoji characters) in plist supported by iphone. When i write directly as - (IBAction)sendButtonSelected:(id)sender { NSMutableArray *emoticonsArray = [[NSMutableArray alloc]initWithObjects:@"\ue415",nil]; NSString *imageNameToPass = [NSString stringWithFormat:@"%@",[emoticonsArray objectAtIndex:0]]; NSLog(@"imageNameToPass1...%@",imageNameToPass); messageTextView.text =imageNameToPass; } it show emoji in textview but as soon as i fetch from plist NSString

copyplist failed with exit code 71

懵懂的女人 提交于 2019-12-03 22:41:59
I have an iPhone app that's shipping ( vConqr - you should go and buy it :-) ). I build the project on several different machines, including a colleague's, and it's been working fine. However, just recently, on my second dev machine my build fails every time with the error: /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist Entitlements.plist --outdir /Code/iPhone/VirtualConquest/build/Debug-iphonesimulator/VirtualConquest.app error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist' (No such file or directory

Multiple Arrays From Plist

做~自己de王妃 提交于 2019-12-03 21:42:34
<?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"> <array> <array> <string>Title 1</string> <string>Subtitle 1</string> <string>image1.png</string> </array> <array> <string>Title 2</string> <string>Subtitle 2</string> <string>image2.png</string> </array> </array> </plist> This is my Plist file for an app I am working on. I am not sure on how to take the first string of many arrays to create an NSMutableArray with all the titles and again for the subtitles and image names. My