码迷,mamicode.com
首页 > 其他好文
UISlider 滑竿控件
UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake:(100, 100, 200, 25); //创建一个滑竿对象slider.backgroundColor = [UIColor redColor];slider.minimu...
分类:其他好文   时间:2016-01-02 20:17:49    阅读次数:157
2016-1-2通知机制的学习 2:代码实现
//// ViewController.m// 通知机制//// Created by Mac on 16/1/2.// Copyright © 2016年 Mac. All rights reserved.//#import "ViewController.h"#import "CZPer...
分类:其他好文   时间:2016-01-02 20:15:59    阅读次数:181
27 岁的程序员应该怎么从发型、着装上提升自己?
金城武披上一件吊儿郎当的白汗衫碾压众生,马云往西装外套里塞进一坨人神共愤的红毛衣丑成新闻,在我看来,他们的选择都非常高明。他们通过许多诸如此类简单的小动作强调着自己有这样做的资格,向外散播着他们真正想要传达的信息——「英俊到无须后天雕琢,成功到裸奔也能像个领袖。」人与人的区别有时候比蚱蜢和扇贝之间的...
分类:其他好文   时间:2016-01-02 20:17:41    阅读次数:263
UISegmentControl
创建UISegmentControl对象UISegmentedControl *segmented = [[UISegmentedControl alloc] initWithItems:@[@"北京", @"上海", @"广州"]];segmented.frame = CGRectMake(100...
分类:其他好文   时间:2016-01-02 20:15:52    阅读次数:170
LeetCode 95:Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example, Given n = 3, your program should return all 5 unique BST's shown below. 1 3...
分类:其他好文   时间:2016-01-02 18:37:29    阅读次数:173
Bootstrap按钮
Bootstrap 提供了一些选项来定义按钮的样式,具体如下表所示: 以下样式可用于, , 或 元素上: 类 描述 .btn 为按钮添加基本样式 .btn-default 默认/标准按钮 .btn-primary 原始按钮样式(未被操作) .btn-success 表示成...
分类:其他好文   时间:2016-01-02 18:38:01    阅读次数:332
Rotate Array leetcode
Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to come...
分类:其他好文   时间:2016-01-02 18:35:53    阅读次数:244
2016-1-2 通知机制的学习1:理论知识
1.通知中心:?每一个应用程序都有一个通知中心(NSNotificationCenter)实例,专门负责协助不同对象之间的消息通信?任何一个对象都可以向通知中心发布通知(NSNotification),描述自己在做什么。其他感兴趣的对象(Observer)可以申请在某个特定通知发布时(或在某个特定的...
分类:其他好文   时间:2016-01-02 18:36:11    阅读次数:173
Generative Learning algorithms
"generative algorithm models how the data was generated in order to categorize a signal. It asks the question: based on my generation assumptions, whi...
分类:其他好文   时间:2016-01-02 18:34:50    阅读次数:262
影响布局的inline-block的空白符的问题
昨天切页面时,进行布局时,想改变以下方法换换口味,所以就抛弃了float方法,采用了display:inline-block方法,没想到却随之而来的带来了一个想不通的问题,那就是空白。废话不多说,上代码。inline-block的空白符 li li ...
分类:其他好文   时间:2016-01-02 18:33:32    阅读次数:254
点击文本框弹出可供选择的checkbox复选框代码实例
点击文本框弹出可供选择的checkbox复选框代码实例:本章节分享一段代码实例,它能够点击文本框的时候,能够弹出下拉的checkbox复选框,选中复选框就能够将值写入文本框中,可能在实际应用中的效果没有这么直白简单,不过可以作为一个例子演示,以便于学习者理解和扩展。代码如下:蚂蚁部落 ...
分类:其他好文   时间:2016-01-02 18:34:08    阅读次数:507
VS插件-Resharper
最近代码因为Resharper出现了点问题,同事问我这个插件有什么用,下面就列几个最近常用的功能。其他功能后续慢慢更新 1.什么是Resharper ReSharper是一个JetBrains公司出品的著名的代码生成工具,其能帮助Microsoft Visual Studio成为一个更佳的IDE。它...
分类:其他好文   时间:2016-01-02 18:34:49    阅读次数:228
配置使用EF常见的一些问题及解决方案
转自http://www.2cto.com/database/201511/449573.html提示未注册,找不到驱动程序No Entity Framework provider found for the ADO.NET provider with invariant name 'System....
分类:其他好文   时间:2016-01-02 18:32:31    阅读次数:236
巨大bug
//数据结构关于课程设计--------图书馆管理系统的设计#include #include #include #include #define _OJ_typedef struct Book{ char title[30]; //ISBN编号书籍的...
分类:其他好文   时间:2016-01-02 18:32:32    阅读次数:179
5、文件过滤器
其实就是筛选你需要的文件啦,可不是windows自带的筛选,而是咱们用代码来实现贴上源码public class Demo { public static void main(String[] args) { File file=new File("E:\\"); ...
分类:其他好文   时间:2016-01-02 18:32:49    阅读次数:156
HDU4876ZCC loves cards(多校题)
ZCC loves cardsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2362 Accepted Submission(s): 590Pr...
分类:其他好文   时间:2016-01-02 18:32:11    阅读次数:175
flex align-content中的描述的“多根轴线的对齐方式”中的“多根轴线”到底是什么
flex 有两条轴线,根据flex-flow 设置的来判断的,水平为主轴的话,那么值为row,垂直为主轴的话那么为column;其中设置align-items 和 align-content都是来设置交叉轴的。这2个属性设置参数互不影响。align-items :在单根轴线和多根都有效,这轴线我理解...
分类:其他好文   时间:2016-01-02 18:31:11    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!