UNNotificationCategory and minimalActions in iOS10 - notifications

According to the documentation UIUserNotificationActionContext has been deprecated on iOS 10 and according to the deprecation message we should Use UserNotifications Framework's -[UNNotificationCategory actions] or -[UNNotificationCategory minimalActions]
The problem is that minimalActions does not exist as a property in UNNotificationCategory, according to both the documentation and the header file (Funnily, a relevant page documenting minimalActions exists without being linked by anything else). So the question is, how does one set the minimal actions in iOS 10 beta 8? What am I missing here?

The minimalActions property of UNNotificationCategory existed in earlier betas, but I'm afraid it was removed in Xcode 8 beta 3, which explains why nothing links to that minimalActions page any more. Instead, set the regular actions property, and iOS will either show up to four or the first two depending on the context.

Related

Code documentation stopped working in Xcode 6

I waited until 6.0.1 to switch to Xcode 6. Upon opening one of my project, I noticed that the quick help view of a method or variable's documentation doesn't work anymore.
For example a simple:
/*! Value of the property. */
for a #property just causes Xcode to say 'Declared in' when trying to view the doc by option clicking on a use of the property somewhere in the code instead of displaying the documentation itself.
Cocoa's own classes doc still display fine and I can tell my documentation gets parsed as incorrectly naming a #param will still cause a warning.
Deleting all the stuff cached in ~/Library/Developer/Xcode/DerivedData fixed the issue.

how to make XCode 4.5 Organizer Documentation help similar to earlier versions

This is one of my biggest turn offs from the newer versions of XCode(ie 4.5+) is the following: in earlier versions.. when you option click a system defined function.. you get a bubble that offers you a link that takes you directly to the function definition in organizer:
but on XCode 4.5 and later.. that changed: the exact link of the function is no longer provided.. instead you can only click on the reference of the entire class!
any idea how that can be changed? Another problem I have is the fact that I just couldn't figure out how to do offline documentation viewing on xcode 4.5 (it worked fine in earlier versions.. and yes i did download all the documentation locally and followed all the SOF links.. but no luck!)..
Make sure you download all the documentation locally via XCode->Preferences. Once it's local there should be no problem accessing specific functions through the popup - it says "Class Reference" but it automatically opens the relevant documentation within the class reference.

Is objectAtIndexedSubscript available in IOS5?

The documentation says it's available in MacOS 1.08.
So what's the story? What about for iOS5?
It's a very important selector because self[5] will actually turn into [self objectAtIndexedSubscript:5] unless I am missing something.
Doesn't work in NSOrderedSet but works in NSArray.
What am I missing?
While objectAtIndexedSubscript: is not available previous to iOS 6, NSArray and NSDictionarysubscripting is available. That means that you can use syntax like this:
myArray[2] = #"thingie";
myDictionary[#"roger"] = #"barry";
And it will deploy back to iOS 4.
However NSOrderedSet subscripting will not work on iOS 5 and previous. For that, you will need to provide a category that redirects objectAtIndexedSubscript: calls to objectAtIndex:.
Addendum: Apple's docs for NSMutableOrderedSet are also incorrect. It states that index subscripting does an insert, when in reality is does a replace (as one would expect).
No, only since iOS 6 unfortunately.
Apple has separate documentations for the OS X and the iOS APIs. You have to check the right one: objectAtIndexedSubscript:.
Availability
Available in iOS 6.0 and later.
If you need your code to run on iOS 5, you'll need to replace
myOrderedSetOfHilariousAcronyms[2] = #"ROFL";
with
[myOrderedSetOfHilariousAcronyms setObject:#"ROFL" atIndex:2];
I look at the NSOrderedSet.h file and I saw this:
- (id)objectAtIndexedSubscript:(NSUInteger)idx NS_AVAILABLE(10_8, 6_0);
So it doesn't work for IOS5.

Mobclix implementation methods conflict Xcode 4.5

Im implementing Mobclix in my app but got 2 method conflict warnings:
instance method 'mcScanCStyleComment:' in category from /Users/user/MyFolder/Myapp/Mobclix SDK/libMobclix.a(MobclixController.o) conflicts with same method from another category
instance method 'mcScanCPlusPlusStyleComment:' in category from /Users/user/Myfolder/Myapp/Mobclix SDK/libMobclix.a(MobclixController.o) conflicts with same method from another category
The app is running OK on simulator despite the warnings, but shows no test ads.
Any idea how to get rid of these warnings and show the ads?
Im using XCode 4.5.
Just heard back from Mobclix support. The warnings are apparently a known issue, and they recommend ignoring this issue until their next release.
As far as the ads not showing, I had the same problem until they pointed out that the size of ads weren't available for the device I was using. (Was trying to use the 320x50 ads on iPad, which they deprecated. They're using 468x60 ads now).

Expression Blend 4 Right to Left Issue

I have recently installed Expression Blend 4 and created a test Silverlight 4 project.
When I set the main page FlowDirection to RightToLeft the designer won't change the direction but if I run the application it will be displayed correctly.
Is this a bug or do I have to do something?
Thanks.
I believe you were the one who also put the post at the microsoft social site (available here) but since it took me a while to find it, I'll also put the response here:
Unni Ravindranathan - MSFT:
We do not support RTL on the design-surface, so what you are seeing is currently by design (the value that you set is ignored). We hope to be able to support it in the future, however.
Let's hope they would!