I have this code
var times = [NSValue]() for time in timePoints { times.append(NSValue(CMTime : time)) }
I get an error that they are not called anything by CMTime in swift 3. I cannot find any parameter for cm time.
Mark the linkNSValue .
NSValue
init(time: CMTime)
Use NSValue(time: time).
NSValue(time: time)
One more. If you want to convert [CMTime]to [NSValue], you can write something like this:
[CMTime]
[NSValue]
let times = timePoints.map(NSValue.init(time:))
Source: https://habr.com/ru/post/1649598/More articles:How to improve the following gnu chart? - plotXamarin.UITest REPL connection canceled - c #RxJs Наблюдается с бесконечным прокруткой ИЛИ как объединить Observables - reactive-programmingHow to control z-order of glyphs in Bokeh? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1649597/implement-api-to-wait-for-d3d10-commands-to-finish&usg=ALkJrhggZe39soA-m0FCv-bja5Od68sC8QReactJS UI toolbar not showing for tabs - cssPHP 5.6. * Vs 7.0. * Syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) - php-7Using the Jekyll relative_directory directory to organize pages / collections - jekyllHow to use ioctl with FS_IOC_FIEMAP - cTastypie using custom detail_uri_name, error of inappropriate type - pythonAll Articles