Comments (3)
It'd be hard to support this because the ordering isn't defined in the place Tweaks stores the value. Why would you want to have two copies of a tweak, though?
from tweaks.
@grp Figured out how to do what I want. I realize that the original way wouldn't work because the tweak is defined at compile time.
So I have to use a different mechanism to change the value at runtime.
FBTweakValue(@"My Category", @"My Collection", @"My Tweak", @"Hello");
FBTweakStore *store = [FBTweakStore sharedInstance];
FBTweakCategory *category = [store tweakCategoryWithName:@"My Category"];
FBTweakCollection *collection = [category tweakCollectionWithName:@"My Collection"];
FBTweak *tweak = [collection tweakWithIdentifier:@"FBTweak:My Category-My Collection-My Tweak"];
tweak.currentValue = @"Goodbye";
Basically I wanted to update the value of the tweak programmatically instead of using the UI.
from tweaks.
Ah, that makes sense. Updating the tweak at runtime should work just as you wrote it out.
from tweaks.
Related Issues (20)
- Release new version to CocoaPods. (Last release was March 20 2015) HOT 1
- Way of displaying a value? HOT 3
- Present View Controller HOT 2
- Inline Tweaks do not work on Xcode 8 / iOS 10 HOT 5
- Need to Update the Release for the Pods. HOT 2
- Support iOS 9 minimum requirement
- How to dimiss Tweaks before I present a new ViewController HOT 1
- Search functionality HOT 1
- Crash when address sanitizing is turned on HOT 2
- The list in FBTweakViewController is empty after using use_frameworks! in Podfile. HOT 2
- Moving FBTweakInline's +load code out
- iOS 11 - motionBegan not being called on FBTweakShakeWindow HOT 2
- Xcode documentation warnings
- how to create FBTweakAction without using macro
- G
- UIAlertView is deprecated in iOS 9 warning in Xcode 7 GM HOT 2
- Issues reading from mach_header when mixing swift and obj-c HOT 5
- Unable to run with diagnostic 'Address Sanitizer' enabled HOT 4
- Swiftish syntax? HOT 2
- Bump version HOT 9
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 tweaks.