Comments (2)
objectForKey
is standard method of NSUserDefaults
class, work without using Prephirences framework
Did you use cocoapod? and import the framework in your file?
import Prephirences
For information subscript
for NSUserDefaults
is defined in NSUserDefaults+Prephirences.swift
from prephirences.
The import was the solution! Thought it was a Swift extension of NSUserDefaults, so I could use it without importing anything. Now I can successfully use return self.userDefaults[key]
and return self.userDefaults[key]?[preference]
. Thanks!
PS: maybe add it to the readme? For us noobs ;)
from prephirences.
Related Issues (14)
- Xcode 9 GM/Swift 4 issues HOT 6
- Minor typo in readme HOT 2
- Logo.png is part of the compiled framework HOT 3
- Unable to store to keychain HOT 6
- Add PreferencesTabViewController to project HOT 4
- Possible issue with keychain and archiving objects HOT 2
- Swift Package Manager support HOT 1
- UserDefaults clearAll doesn't work with a custom suite name
- Example App? HOT 1
- Compilation error by Xcode7.0 beta6. HOT 2
- Won't compile with Xcode 7.3 beta 2 / Swift 2.2 HOT 2
- Xcode 7.3 & Swift 2.2 HOT 2
- Ini file parsing and Automatic UI/View building HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prephirences.