Skip to content

Instantly share code, notes, and snippets.

View alexanderkhitev's full-sized avatar
🚀
Focusing

Alexander Khitev alexanderkhitev

🚀
Focusing
View GitHub Profile
func checkSpotlightResult() {
print("checkSpotlightResult")
boolCheckSpot = userDefault.boolForKey("spotlightBool")
if boolCheckSpot != nil {
if boolCheckSpot == true {
identifierCheckSpot = userDefault.valueForKey("spotlightIdentifier") as! String
if arrayForCheckSpot.contains(identifierCheckSpot) {
// print("Array title contains \(identifierCheckSpot)")
let index = arrayForCheckSpot.indexOf(identifierCheckSpot)!
let myIndexPath = NSIndexPath(forRow: index, inSection: 0)