Questions tagged [apple-documentation]

This tag refer to apple documentation, it's helpful to add it to the questions related with iOS development or any Frameworks/Service/API of Apple platforms documentation.

Links iOS apple documentations may helpful :

29 questions
7
votes
1 answer

Objective-C and Swift Documentation together like Apple documentation

I am currently working on building iOS SDK, written in Objective-C. Now that I have SDK tested and ready, would wanted to add Documentation to it combining Swift and Objective-C. I have worked on following Doc generator tools a. Doxygen b.…
Ram
  • 81
  • 5
6
votes
1 answer

quantityType(forIdentifier:) deprecated in a future version of iOS?

Xcode (I'm on v13.1) warns me, that quantityType(forIdentifier:) will be deprecated in a future version of iOS. I thus checked in Apple's developer documentation for a hint what else to use. Surprisingly, on the documentation it is not labeled as…
Leo
  • 1,508
  • 13
  • 27
3
votes
1 answer

When using Apple DocC: How to not generate documentation? How to link to UIKit? How to generate docs for extensions?

I am using DocC for the first time, and after reading your docs, there are 4 things I don't know how to do it, can you help me? How can I mark public methods to tell DocC that I don't want to generate documentation for a specific method? For…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
3
votes
1 answer

Get Mouse Tracking Speed with C/C++ on Mac OS

I want to get the Mouse Tracking Speed on OSX all the methods I've found on the documentation, like IOHIDGetAccelerationWithKey have been deprecated. Is there any way to do this? I haven't found an example that doesn't use the deprecated methods and…
3
votes
5 answers

Apple Developer Portal adding UDID: 'invalid or already registered'

I attempted to add a device UDID to the Apple Developer Portal(copy-pasted from iTunes device summary), but I received this error: "The following devices are either already present and were not modified or contain invalid identifiers" The UDID has…
jungledev
  • 4,195
  • 1
  • 37
  • 52
2
votes
0 answers

How do I find the entire syntax / functions available in NSExpression / NSPredicate?

I tried looking for the ternary operator in the NSExpression documentation, but I couldn't find anything. I ended up finding an obscure reference in a 3rd party website to a TERNARY function, so I tried it out and sure enough, it worked. Had I not…
Senseful
  • 86,719
  • 67
  • 308
  • 465
2
votes
1 answer

Is it possible to get paths to all apps with the defined bundle identifier

I need to check if the app exist on system disk. And it works fine if I don't have connected external hard drive. But it also returns me the path to apps on external hard drive sometimes. I use absolutePathForAppBundleWithIdentifier method of…
Nuzhdin Vladimir
  • 1,714
  • 18
  • 36
2
votes
2 answers

Core Data initialization

Looking at Apple documentation, I see that they are recommending removing Core Data initialization code out of AppDelegate. Their approach is below. What I don't understand are the following The sentence below in the documentation. How is there…
1
vote
2 answers

How do I use conditionals (e.g. ternary operator) in an NSExpression?

I'm using an NSExpression to evaluate simple strings such as: NSExpression(format: "1 + 1").expressionValue(with: nil, context: nil) as? Int == 2 Some of my strings have more complex logic, and I'd like to use a ternary operator. I tried using the…
Senseful
  • 86,719
  • 67
  • 308
  • 465
1
vote
1 answer

How to enable iOS time-sensitive notifications switch in app settings?

I am working on changing the types of notifications in my app to time-sensitive and active on iOS 15+. I noticed that if I go to iPhone settings -> Notifications -> and open apps like Uber or FB Messenger I see that they have a separate flag that…
1
vote
1 answer

Xcode - Add Custom Documentation for Swift Closure

Question: What is the correct format to add documentation (using built in functionality not 3rd party) to a custom Swift closure in Xcode 8 ? Could you provide the Apple documentation link to refer ? How to specify the closure parameters ? How to…
user1046037
  • 16,755
  • 12
  • 92
  • 138
1
vote
0 answers

Can't create a sandbox user with email subaddress

According to Apple Docs here, you are allowed to create sandbox users with an email sub-address of your base email address Apple ID. For example, if my Apple ID email address is user@email.com, I could create a sandbox user with…
amallard
  • 1,189
  • 1
  • 12
  • 24
1
vote
3 answers

Does using the keyword guard inside a function automatically make a function's parameter optional in swift?

I'm fairly new to programming and I'm reading the Start Developing iOS Apps (Swift) programming guide. I understand that optionals have a question mark suffix which means the value could be nil or some other value. Apple's guide is walking us…
Laurence Wingo
  • 3,912
  • 7
  • 33
  • 61
1
vote
1 answer

If Apple's documentation says not to subclass a class, does this mean we should treat the class as a singleton and have only one?

In Apple's documentation there are "Subclassing Notes" which sometimes may say to not subclass a specific class. For example HKHealthStore has this verbiage in its documentation: "Like many classes in HealthKit, the HKHealthStore class should not…
Laurence Wingo
  • 3,912
  • 7
  • 33
  • 61
0
votes
0 answers

No visible @interface for 'NSFileManager' declares the selector 'moveItemAtPath:toPath:'

I'm trying to use the moveItemAtPath method, but I am getting an error about using an interface. > #import > > int main(int argc, const char * argv[]) { > @autoreleasepool { > NSFileManager *manage = [NSFileManager…
eh1412
  • 43
  • 1
  • 2
  • 8
1
2