码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
iOS 设置视图背景的透明度
self.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.8f]; ...
分类:移动开发   时间:2017-05-26 10:57:54    阅读次数:138
IOS 地图移动中心点获取
MKMap显示地图后,如果用户移动了地图,自己定义的数据就需要刷新了,所以这个时候,中心点的经纬度就比较重要了。 本文演示如何获取经纬度 在MKMapViewDelegate里有个方法 - (void)mapView:(MKMapView *)mapView regionDidChangeAnima ...
分类:移动开发   时间:2017-05-26 10:57:22    阅读次数:176
(最小生成树)Codeforces 76 A Gift
The kingdom of Olympia consists of N cities and M bidirectional roads. Each road connects exactly two cities and two cities can be connected with more ...
分类:其他好文   时间:2017-05-26 00:42:36    阅读次数:283
页签类型按钮上面记录条数获得
这里是销售订单记录条数固定格式(self, cr, uid, ids, field_name, arg, context=None):def _sales_count(self, cr, uid, ids, field_name, arg, context=None): res = dict.fro ...
分类:其他好文   时间:2017-05-25 23:30:18    阅读次数:271
LeetCode 103. Binary Tree Zigzag Level Order Traversal
原题 Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level a ...
分类:其他好文   时间:2017-05-25 13:36:46    阅读次数:154
leetcode_Product of Array Except Self
描写叙述: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements ofnums ex ...
分类:其他好文   时间:2017-05-25 11:59:06    阅读次数:173
UITableView 键盘覆盖UITableViewCell的输入框解决方法(swift)
extension UITableView { func addNotifications() { NotificationCenter.default.addObserver(self, selector: #selector(boardWillShow(not:)), name: NSNotif ...
分类:编程语言   时间:2017-05-25 11:51:32    阅读次数:175
java.lang.IllegalArgumentException: Registered more than one instance with the same objectName
java.lang.IllegalArgumentException: Registered more than one instance with the same objectName ...
分类:编程语言   时间:2017-05-25 01:13:50    阅读次数:420
【Python】京东商品价格监控
import requests,json,re,winsound,time class Stock(object): def __init__(self): self.province_dict={value:key for key,value in { 1:'北京',2:'上海',3:'天津',4... ...
分类:编程语言   时间:2017-05-25 01:12:14    阅读次数:584
保留X位小数(Double) swift
代码如下,输入要保留的小数个数extensionDouble{///RoundsthedoubletodecimalplacesvaluefuncroundTo(places:Int)->Double{letdivisor=pow(10.0,Double(places))return(self*divisor).rounded()/divisor}}
分类:编程语言   时间:2017-05-24 22:24:41    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!