Cuando se actualizan los gráficos a 3.0.4, aparece este error en Xcode 9.
Otros errores son:
También me enfrento a errores en la mayoría de las clases de gráficos después de actualizar a 3.0.4
Etiqueta de argumento incorrecta en la llamada (tiene 'withAttributes:', esperados 'atributos:')
También me di cuenta de esto. Lo soluciono configurando la versión rápida en 4.0 en la configuración de compilación de gráficos en xcode
También lo arreglé. Gracias
¿Cómo arreglarlo en un proyecto ObjectiveC?
debe tener la etiqueta @objc para usar, así que actualice su código
atributos: [NSFontAttributeName: label.font]
Para Swift 3 use pod 'Charts','= 3.0.3'
Supongo que esto debería arreglarse en este marco.
Por cierto, si usa Pods:
Me encontré con este problema con v. 3.1.1
, estoy usando Swift 4.1
let att: [NSAttributedStringKey: Any] = [
NSAttributedStringKey(rawValue:
NSAttributedStringKey.font.rawValue): UIFont.italicSystemFont (ofSize: 15.0
),
NSAttributedStringKey(rawValue:
NSAttributedStringKey.foregroundColor.rawValue): Const.colorBlue500,
NSAttributedStringKey(rawValue:
NSAttributedStringKey.underlineStyle.rawValue): 1]
let attributeString = NSMutableAttributedString(string:
"open_accessory_sheet" .localize,
attributes: att)
Por rápido 4.
puedes intentar usarlo
Vào jue 7, 9 thg 6, 2018 vào lúc 02:43 Jose Manuel Vergara Florez <
[email protected]> đã viết:
Me encontré con este problema con la v. 3.1.1, estoy usando Swift 4.2
-
Estás recibiendo esto porque hiciste un comentario.
Responda a este correo electrónico directamente, véalo en GitHub
https://github.com/danielgindi/Charts/issues/2816#issuecomment-395868392 ,
o silenciar el hilo
https://github.com/notifications/unsubscribe-auth/AMLGfjdadIXdyF4cgGGTCaYMQs1sz9CDks5t6tPcgaJpZM4PgNRb
.
let att: [NSAttributedStringKey: Any] = [
NSAttributedStringKey (rawValue: NSAttributedStringKey.font.rawValue): UIFont.italicSystemFont (ofSize: 15.0),
NSAttributedStringKey (rawValue: NSAttributedStringKey.foregroundColor.rawValue): Const.colorBlue500,
NSAttributedStringKey (rawValue: NSAttributedStringKey.underlineStyle.rawValue): 1]
let attributeString = NSMutableAttributedString (string: "open_accessory_sheet" .localize,
atributos: att)
Comentario más útil
También me di cuenta de esto. Lo soluciono configurando la versión rápida en 4.0 en la configuración de compilación de gráficos en xcode