Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,659 results found

Post

Replies

Boosts

Views

Activity

CTRubyAnnotation changes (need help fixing error)
I'm currently running into some problems when creating an NSAttributedString that displays the ruby annotation for a string. var reading = [.passRetained(ねこ) as Unmanaged<CFStringRef>?, .None, .None, .None] let annotation = CTRubyAnnotationCreate(.Auto, .Auto, 0.5, &reading) as CTRubyAnnotationRef let attributed = NSAttributedString(string: 猫, attributes: [ NSFontAttributeName: font, NSVerticalGlyphFormAttributeName: verticalLayout, kCTRubyAnnotationAttributeName: annotation.takeUnretainedValue() ])This is giving me the error that CTAnnotationRef doesn't have a member named takeUnretainedValue.Has there been a change in swift or iOS 9 that now means the code doesn't work as expected? Also, is there a better way I could be creating the NSAttributedString?The code above works fine under swift 1.2 / iOS 8.Thanks,Matt Delves
0
0
277
Jun ’15
How to update from watchOS 2 beta to watchOS 2 Final
Hi everyoneWhen the final version is released to the public of watchOS 2, how will the update work from the GM?Usually, on iOS when upgrading from the GM to final, you download the APK off itunes servers, plug it into itunes and update it.On Mac, you just redownload the installer from the app store and install it.How will this work on watchOS since you cannot use a manual file and im guessing it wont read the full update from a GM if you know what im trying to say 🙂
1
0
597
Jun ’15
Reply to a mismatch between the mbr and gpt partition maps is not supported
Found a solution that worked for me:Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type q to quit. However, if it shows something like this, then you have the problem:sudo gdisk /dev/disk0Command (? for help): vWarning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!Identified 1 problems!Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:Command (? for help): rRecovery/transformation command (? for help): oDisk size is 1953525168 sectors (931.5 GiB)MBR disk identifier: 0x7C170CB2MBR partitions:Number Boot Start
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to a mismatch between the mbr and gpt partition maps is not supported
Found a solution that worked for me:Yes. First, download gdisk (URL in the OP) and run the installer package. Then run gdisk from a terminal window and run the v (verify command). If verify indicates no problems, then you're good to go and can just type q to quit. However, if it shows something like this, then you have the problem:sudo gdisk /dev/disk0Command (? for help): vWarning! Mismatched GPT and MBR partition! MBR partition 4, of type 0x07, has no corresponding GPT partition! You may continue, but this condition might cause data loss in the future!Identified 1 problems!Next, display the MBR partition table and make note of the start and end sectors for your BOOTCAMP partition. This should be partition 4 unless you've added additional partition(s), which is not officially supported by Boot Camp. It should show something like this:Command (? for help): rRecovery/transformation command (? for help): oDisk size is 1953525168 sectors (931.5 GiB)MBR disk identifier: 0x7C170CB2MBR partitions:Number Boot Start
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Loading an .Obj model file
Here's the working code: let bundle = NSBundle.mainBundle() let path = bundle.pathForResource(Model, ofType: obj) let url = NSURL(fileURLWithPath: path!) let asset = MDLAsset(URL: url) let scene = SCNScene(MDLAsset: asset)Step 1) Get the path of the model fileStep 2) Load the file into a MDLAssetStep 3) Create a SCNScene with the asset (alternatively you can find the model inside the asset and add it to an existing scene)
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’15
Reply to Great. Back to square one. 0 points.
Apple is a user, just like us, when it comes to their contractor supplied forum software, which is typically from JIVE Software (Portland). JIVE tends to supply for Windows and open source, so when it comes to migrating anything, that's another checkbox on the option li$t. Witness the old forums now archived and locked. That option is carries the least overhead and co$t, after all.Migrating comments with intact threads from one format to another is rarely trivial/pretty, especially when the source is old and the new format is yet again proprietary. Migrating users is same only different.And since the old rep counter was broken...good riddance, I say. I've lost track of how many times I've seen counters restart for various Apple forums, so it's just another day online for me.The drivers for new forum software never included much value from old threads which primarily dealt with outdated code, tools, diluted/duplicate threads, etc. I suspect emphasis was placed on search, where users are nudged to do t
Jun ’15
Weather app finding different location for default listing...
I live in Providence, R.I....yet the Apple Watch keeps pulling up weather for South Atlantic Ocean as the default location.It makes zero sense because I can't even search for that in the normal weather app. Also I wouldn't be located in the South Atlantic. When I restart the watch, it stays as Providence for maybe a half our or so then reversts back. This also seems to be killing the battery at about 10% an hour which is awful . I used to put the watch on the charger with 30-40%, and I've already had to charge it twice today.Anyone else have this weird glitch? Beta 2 can't come soon enough because I can't downgrade. As goes the life of a developer with beta software.
4
0
305
Jun ’15
Reply to prepareForSegue vs. pushViewController
When you mention the line below, do you mean the following.You should define a property or method on the destination VC that says here is the data to be displayed.When the delegate call back method is called, I am currently writing the line of code below.self.feedViewController!.feedsTableView.reloadData()Since this is reloading a tableView in another VC you mentioned this was not ideal. Instead, would the following logic make more sense.In the home VC I would instead write.self.feedViewController!.updateTableView()Then in the FeedVC where the tableView resides I would perform the following in the updateTableView() method.func updateTableView() { self.feedsTableView!.reloadData() }I hope this is clear. Take care,Jon
Jun ’15