nsvalue Questions
4
Could someone please provide me with an example of animating the opacity of an Image View in swift??
I couldn't even find a good example in objective c
func showCorrectImage(element: AnyObject){
...
Crescentia asked 18/11, 2014 at 13:19
3
Solved
I am trying to save CLLocation data in Core Data. My property is set as a Transformable object.
Some sample code out there indicates one can save the location data using this objc converted to an ...
Newsdealer asked 6/11, 2014 at 22:20
7
Solved
In CABasicAnimation.fromValue I want to convert a CGPoint to a "class" so I used NSValue valueWithPoint but in device mode or simulator one is not working...
need to use NSMakePoint or CGPointMake ...
Hermilahermina asked 21/4, 2009 at 14:52
5
Solved
As my question title says how can I convert CGPoint into NSValues so I can store then Into array In swift.
In objective-C we can do it like this:
// CGPoint converted to NSValue
CGPoint point =...
3
Solved
this is supposed to be trivial… I think, but I can't find a way how to wrap a Struct variable into an NSObject. Is there a method to do so? If not, how would I go about adding a struct into an NSMu...
Verdun asked 17/4, 2011 at 6:11
1
Solved
I was trying to make use of AVPlayer's addBoundaryTimeObserverForTimes method from swift and ran into a problem converting CMTimes to NSValues, which is what addBoundaryTimeObserverForTimes take as...
Osmium asked 17/10, 2014 at 17:15
1
Solved
Here's what I've tried so far
func onKeyboardRaise(notification: NSNotification) {
var notificationData = notification.userInfo
var duration = notificationData[UIKeyboardAnimationDurationUserInf...
1
Solved
This code
class ID<T: AnyObject> : NSValue {
init(baseObject: T) {
super.init(nonretainedObject: baseObject)
}
}
gives this compiler error:
error: must call a designated initializer of...
3
Solved
I was trying to encode an MKMapView center and span into an NSKeyedArchiver for state preservation. I found a couple of handy new MapKit NSValue additions, valueWithMKCoordinate: and valueWithMKCoo...
Overlap asked 28/8, 2013 at 10:10
1
Solved
I need to set zoomScale back to 1 on a UIScrollView, but I need it to be animated. I thought I could use CABasicAnimation for this, but NSValue doesn't seem to have a "valueForFloat" or "valueForNS...
Grindle asked 11/6, 2013 at 21:2
2
Solved
I'm storing Chipmunk Physics' cpShape objects in an NSMutableDictionary by way of NSValue objects and the following lines of code:
NSValue *shapeValue = [[NSValue alloc] initWithBytes: shape objCT...
Urbanize asked 4/2, 2013 at 11:34
1
© 2022 - 2024 — McMap. All rights reserved.