0

I've been trying to find a workable solution to determine if I have room to allocate an array of files to the Apple Watch before I attempt any file transfer at all, and I've come up with nothing so far. Any help would be amazing!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jargen89
  • 480
  • 1
  • 6
  • 19

1 Answers1

0

NSFileManager works the same way for the Apple Watch as it does on other devices.

In Objective-C:

[[[NSFileManager defaultManager] attributesOfFileSystemForPath:NSHomeDirectory() error:nil] objectForKey:NSFileSystemFreeSize]
rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jargen89
  • 480
  • 1
  • 6
  • 19