Questions tagged [unwrap]
181 questions
1
vote
1 answer
jquery custom, customize attr
My coding wordpress loop menu. Is possible replace JQ?

Krisna Wan
- 13
- 5
1
vote
2 answers
Unwrap a div in react, something similar to jQuery unwrap method
I am using React JSX. I have a div with className="shadow" as shown below.
Based on a certain…
Hello

abhi
- 349
- 2
- 8
- 24
1
vote
1 answer
Why do I get pointed to Assembly code when - fatal error: unexpectedly found nil while unwrapping an Optional value - occurs?
I guess every Swift developer gets this error every once in a while:
fatal error: unexpectedly found nil while unwrapping an Optional value
I know that force unwrapping an optional without a value causes this to happen (it mostly happens to me when…

Mark
- 1,258
- 13
- 25
1
vote
1 answer
Haskell unwrap data
If you have a data type
data Something = foo Integer
| bar Bool
Is there anyway I define "getters" that unwrap the Something type to get just the Integer or Bool? Right now it would be like (foo Integer) and (bar Bool). I just want…

Umar Farooq
- 73
- 2
- 6
1
vote
1 answer
Error: Found nil while unwrapping an Optional value; While Pass Data to the New Controller
I'm learning swift 2. I'm trying to pass the data of the cell (UITableView) that is tapped to the new View Controller. But I constantly get the error of: "unexpectedly found nil while unwrapping an Optional value" for the code line…

Wang Nan
- 15
- 3
1
vote
1 answer
Argument type '[MGLPointAnnotation]' does not conform to expected type 'MGLAnnotation'
I have recently started learning swift, and have now taken the next step into making my own map. I have already succesfully made an app with mapkit, and I am now trying my luck with mapbox, as I like its design features.
I have contructed a…

MarkAnon
- 11
- 1
1
vote
1 answer
Showing optional double number on a label
I'm trying to show a double number on a label. But it shows as an optional. I can't unwrap it using "!" because some of the data is nil.
How can I make the "Optional(...)" text not show up?
This is how it looks:
let row =…

Nyxx
- 303
- 3
- 13
1
vote
0 answers
Can't unwrap/cast in in Swift 3
I'm using the ios library Charts (https://github.com/danielgindi/Charts)
There's a delegate function declared chartValueSelected, which gives me back entry: ChartDataEntry.
So I get the entry, with it's data, declared as var data:…

netdigger
- 3,659
- 3
- 26
- 49
1
vote
1 answer
Swift 2. Trying to unwrap a label.text! with NSNumberFormatter() included
Swift 2. I'm trying to use the answer of a label.text! to multiply again. The label is an optional but it has to be multiplied with a Double.
@IBOutlet weak var testLabel: UILabel!
@IBOutlet weak var first: UITextField!
@IBOutlet weak var second:…

Vidal Singh
- 123
- 1
- 6
1
vote
1 answer
UnknownUnwrapTypeException: Cannot unwrap to requested type [javax.sql.DataSource]
I know that this question has been answered before, but none of the responses seem to help me, since i am not using a datasource in my project.
I a have a Maven project, integrated with Spring and Hibernate, connecting to a SQL Server 2014…

BadWolf
- 73
- 1
- 9
1
vote
2 answers
GoogleAnalytics - swift error
I am using cocoa-pod for Google Analytics.
Pod file
source 'https://github.com/CocoaPods/Specs.git'
target 'MyProject' do
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'GoogleAnalytics'
end
Bridging header
#import…

Tapas Pal
- 7,073
- 8
- 39
- 86
1
vote
2 answers
Errors with numpy unwrap when the using long arrays
I am trying to use the function numpy.unwrap to correct some phase
I have long vector with 2678399 records which contains the difference in radians between 2 angles. The array contains nan values although I think is not relevant as unwrap is applied…

gis20
- 1,024
- 2
- 15
- 33
1
vote
3 answers
is it true that swift optional values only needs to be unwrapped once and then it can be used multiple times without unwrapping it again?
I'm new to Swift and is trying out the beginner's project of building a calculator. I understand that "display.text" returns an optional string and the string value inside of it has to be unwrapped with "!" before it can be used.
However, I have…
user5849987
1
vote
1 answer
fatal error: unexpectedly found nil while unwrapping an Optional value. Swift
I am new in Swift. My question is I am not sure how to unwrapping the optional value. When I print the object.objectForKey("profile_picture"), I can see Optional().
let userQuery = PFUser.query()
//first_name is…

Pak Ho Cheung
- 1,382
- 6
- 22
- 52
1
vote
1 answer
Value of optional type '()?' not unwrapped
As far as I can tell, the optional failure block in the code below is already unwrapped with the ? but xCode has been complaining about my syntax. If you look closely at the success block, it looks exactly like the failure block but somehow, xCode…

Loc Pham
- 619
- 1
- 6
- 18