 			}
 		}
 	}
+
+	func notifyCKAccountStatusNoAccount() {
+		if ( !ignoreCKAccountStatusNoAccount )
+		{
+			let alert = UIAlertController(title: "No iCloud Account", message: "An iCloud account with iCloud Drive enabled is required for iCloud sync.", preferredStyle: .alert)
+			alert.addAction(UIAlertAction(title: "Preferences", style: .default, handler: { (_) in
+				if #available(iOS 10.0, *)
+				{
+					// Opens iCloud Prefs < iOS 11.0, main Prefs >= iOS 11.0
+					UIApplication.shared.openURL(URL(string: "App-Prefs:root=CASTLE")!)
+				}
+				else
+				{
+					UIApplication.shared.openURL(URL(string: "prefs:root=CASTLE")!)
+				}
+			}))
+			alert.addAction(UIAlertAction(title: "Ignore", style: .cancel, handler: { (_) in
+				self.ignoreCKAccountStatusNoAccount = true
+			}))
+			self.present(alert, animated: true, completion: nil)
+		}
+	}
 }
 

	var pbCount:Int = -1
	var rememberedSyncSettings:Bool = false
	var rememberedSyncClippings:Bool = false

	let pasteboardInteractionQueue = DispatchQueue(label: "com.Flycut.pasteboardInteractionQueue")
	let alertHandlingSemaphore = DispatchSemaphore(value: 0)


import UIKit

class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, FlycutStoreDelegate, FlycutOperatorDelegate, MJCloudKitUserDefaultsSyncDelegate {

	let flycut:FlycutOperator = FlycutOperator()
	var activeUpdates:Int = 0
