想练练手,所以封装了一个两种选择星星的评价样式的Demo,并且可以获取到点击的星星的索引值,方便记录值,上传数据时使用 首先创建View类,设计初始化方法,并且用到了枚举类型和代理方法 方式一:默认的有文字的5颗星评价的样式 case .TextType://有文字样式 //计算每个星星的大小宽.高 let itemWidthF:CGFloat = viewWidthF / 5.0 let itemHeig
Stars Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 39186 Accepted: 17027 Description Astronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star b
Stars Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6581 Accepted Submission(s): 2625 Problem Description Astronomers often examine star maps where stars are represented by points on a plan
Stars Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8610 Accepted Submission(s): 3428 Problem Description Astronomers often examine star maps where stars are represented by points on a pla