Xcode 中的复选框(iPhone 编程)问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5188775/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:23:06  来源:igfitidea点击:

CheckBoxes in Xcode (iPhone Programming) question

xcode

提问by WinterIsComing

Ok the problem is that i need to do like a summary of a list of things to do, with a checkbox at the right... The state 0 of the checkbox is a png with an empty checkbox, and the state 1 is when the user touch in it, and it should display a png with a marked checkbox, everything must reset at midnight.. How can i do that?

好的,问题是我需要做一个要做的事情列表的摘要,在右边有一个复选框......复选框的状态 0 是一个带有空复选框的 png,状态 1 是当用户触摸它,它应该显示一个带有标记复选框的png,一切都必须在午夜重置..我该怎么做?

回答by WrightsCS

Check out this tutorialthat uses a UIButtonto create a custom checkbox.

查看本教程,该教程使用 aUIButton创建自定义复选框。