Programación

Preguntas y respuestas para programadores profesionales y entusiastas.


18
iOS cambia la fuente y el color del título de la barra de navegación
Así que tengo este código que debería cambiar la fuente del título de la barra de navegación, pero no NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont fontWithName:_dataManager.optionsSettings.fontString size:14], NSFontAttributeName, [UIColor whiteColor], NSForegroundColorAttributeName, nil]; [[UINavigationBar appearance] setTitleTextAttributes:attributes]; Cambiar la fuente del botón Atrás con este código funciona bien. //set backbutton font NSDictionary *normalAttributes …
101 ios  fonts  ios7  navigationbar 




5
Task Runner Explorer no puede cargar tareas
Estoy usando VS2015 y Gulp. Abro Task Runner Explorer y presiono actualizar, y esto aparece en el registro: Failed to run "C:\Projects\Test\Gulpfile.js"... cmd.exe /c gulp --tasks-simple Error: `libsass` bindings not found in C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-11\binding.node. Try reinstalling `node-sass`? at Object.sass.getBinaryPath (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\extensions.js:148:11) at Object.<anonymous> (C:\Projects\Test\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:16:36) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load …

20
git: clave de host del servidor no almacenada en caché
Intento enviar cambios desde mi repositorio local a un repositorio remoto. Cuando escribo: git push origin Obtuve el siguiente error: The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: …
101 windows  git  ssh  putty  plink 


14
error de recurso en Android Studio después de la actualización: No se encontró recurso
Después de una actualización reciente de Android Studio, tenemos problemas para compilar un proyecto que funcionaba anteriormente. Al principio recibimos el siguiente error: /Users/james/Development/AndroidProjects/myapp/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.0/res/values-v23/values-v23.xml Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(2) Error retrieving parent for item: No resource found that matches …
101 java  android  apache 


22
Calcular el ancho del texto
Estoy tratando de calcular el ancho del texto usando jQuery. No estoy seguro de qué, pero definitivamente estoy haciendo algo mal. Entonces, aquí está el código: var c = $('.calltoaction'); var cTxt = c.text(); var cWidth = cTxt.outerWidth(); c.css('width' , cWidth);
101 jquery 

3
MENOS clases de anidamiento CSS
Estoy usando MENOS para mejorar mi CSS y estoy tratando de anidar una clase dentro de una clase. Hay una jerarquía bastante complicada, pero por alguna razón mi anidación no funciona. Tengo esto: .g { float: left; color: #323a13; .border(1px,#afc945); .gradient(#afc945, #c8da64); .common; span { .my-span; .border-dashed(1px,rgba(255,255,255,0.3)); } .posted { …
101 css  nested  less 




Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.