对于已经向Apple提交应用程序的人来说,这是一个问题:对于自定义的UIButton,您正在设置的图像或背景是否需要为每个按钮状态设置一个?有时,我只为正常状态设置一个按钮图像,然后当按钮被点击时,系统会设置一个默认的高亮显示,但是我看到在Xcode的控制台中,有时会出现一些消息,表示某些按钮的状态没有设置.
谢谢!
控制台中的编辑.消息与此类似:
button text attributes only respected for UIControlStateNormal, UIControlStateHighlighted and UIControlStateDisabled. state
下面是我的ajax片段,这是一个上传提交文件的服务器端脚本。它在change of input[type=file]上触发。
$('#magLogo').on('change', function(e) {
var $input = $(this);
var file = e.currentTarget.files[0];
var data = new FormData();
data.append('file', file);
$.ajax({
我正在开发一个移动版本的网站,我正在模拟iOS界面。网站上有一些支持背景图像精灵的地方(chevron变成了加载gif /灰度图标变成了彩色图标)。
它在桌面Safari上运行得无懈可击,在移动Safari上则参差不齐。图像有时会加载,但不会加载其他图像;图标会加载,但V形图标不会;它们会加载到我的iPhone上,但不会加载到我的iPad上,反之亦然。
我在调试控制台中没有收到任何错误。下面是HTML和CSS:
CSS:
footer li a i {display:block; height:24px; width:24px; margin:0 auto;}
footer li a
// Repaints the progress bar's filled-in amount based on the % of time elapsed for current video.
progressBar.change(function () {
var currentTime = $(this).val();
var totalTime = parseInt($(this).prop('max'), 10);
// Don't divide by 0.
var fill = totalTime !== 0 ?
使用下面的示例,我需要向文本锚点添加填充和背景色属性。然后,我需要从包含图像的锚中排除填充和背景色。
<p>
<a href="#">this is a text link that needs to be styled</a>
<a href="#"><img src="image/name.jpg" alt="this needs to be excluded from styling" /></a>
</p>
如果我有红色背景和填充在