码迷,mamicode.com
首页 > 其他好文
导航栏标题颜色设置
相当出自己刚做开发的时候朋到这个问题时候的解决方案是, 创建一个lable,让导航栏的titleView = lable 改变label的字体颜色,才实现的效果 后来才发现 原来也是有API的,希望能给朋友们带来帮助 self.navigationItem.title = @"hello"; NSDictionary * dic = [NS...
分类:其他好文   时间:2015-03-04 13:01:23    阅读次数:135
对象的深度复制
首先什么是深度复制?什么又是浅复制? 百度告诉我---------------> 浅复制:将一个对象复制后,基本类型都会重新创建,而引用类型指向的还是原对象所指的引用; 深复制:讲一个对象复制后,不论是基本类型还是引用类型都是重新创建的。 下面看我们的深度复制方法 package everyworkdayprogramming._2015_3_03; import java.i...
分类:其他好文   时间:2015-03-04 13:02:02    阅读次数:125
NSNull, NSNumber 转字符串
开发过程中处理数据的时候会遇到的一些问题 给NSString 创建一个类目,创建+号方法 @implementation NSString (NSNumberChange) + (NSString *)stringJsonValue:(id)JsonValue {     NSString *string = nil;     if (JsonValue == [NS...
分类:其他好文   时间:2015-03-04 13:00:58    阅读次数:138
UVa 10791 - Minimum Sum LCM
题目:给你一个数N,确定一个正整数集合S,使得S中的数字的LCM为N且S中数字之和最小。 分析:数论。首先,有一个结论S中的元素互质,因为如果不互质LCM不变,且和更大。             既然S中元素互质,那么只要将N因式分解即可,且相同的因子只能组成一个数字;             (这里先不考虑N等于1或者素数的情况)             即S = { 2^a1, 3^a...
分类:其他好文   时间:2015-03-04 12:59:25    阅读次数:149
08.spritekit征程——场景中的动画
08.spritekit征程——场景中的动画接着上文,显示静态的文字是否无法满足你的欲望,那么本文的内容绝对让你热血沸腾,记得小时候爱看动画,现在有这么一个机会让你来创作是不是想想都有点小激动呢。 动画的核心呢就是actions。在Sprite Kit 中的大多数action 其实就是改变节点(Node)的属性罢了。假如你还不了解节点是什么,建议好好谷歌百度下,虽说都是最基础的知识,但是我认为“万...
分类:其他好文   时间:2015-03-04 12:59:36    阅读次数:140
基于Scriptcase的流程审批开发明细
通过Scriptcase的快速代码生成工具,可以方便的生成表单和行式报表;通过weBasic框架的流程配置向导和流程管理工具,可以方便的定义流程的节点、流程关联关系、收件人、加载函数、发送函数等等,从而使得业务数据可以进行多步骤的流程式审批。     流程审批可以使用在企业内部的请假申请、费用审批、事项审批、业务流转...
分类:其他好文   时间:2015-03-04 13:01:16    阅读次数:149
[LintCode]k Sum
Given n distinct positive integers, integer k (k <= n) and a number target.Find k numbers where sum is target. Calculate how many solutions there are?...
分类:其他好文   时间:2015-03-04 12:59:04    阅读次数:188
数值的整数次方
题目描述: 给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。 输入: 输入可能包含多个测试样例。 对于每个输入文件,第一行输入一个整数T,表示测试案例的数目,接下来的T行每行输入一个浮点数base和一个整数exponent,两个数中间用一个空格隔开。 输出: 对应每个测试案例, 输出一个浮点数代表答案,保留两位小数即可。 ...
分类:其他好文   时间:2015-03-04 12:58:32    阅读次数:125
Activemq 安装与集群配置
1. 新建文件夹activemq/server  mkdir  server   2.授权  chmod 777 server   3.下载activeMQ安装包,拷贝到/activemq/server目录下 apache-activemq-5.9.0-bin.tar.gz,下载地址: http://activemq.apache.org/download.html   4....
分类:其他好文   时间:2015-03-04 13:00:40    阅读次数:120
1039. Course List for Student
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...
分类:其他好文   时间:2015-03-04 12:58:12    阅读次数:177
URAL 1409 Two Gangsters (开放思维)
Two Gangsters Time limit: 1.0 second Memory limit: 64 MB Two gangsters Harry and Larry had a rest at countryside. They decided to spend some time shooting, so they put several beer cans (...
分类:其他好文   时间:2015-03-04 12:57:40    阅读次数:122
<!--把一个xml文档("note.xml")载入到xml解析器中-->
funcion parseXML() { try { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); }catch(e) { try { xmlDoc = document.implementation.createDocument("", "", null); }catch(e) { alter(e.message); r...
分类:其他好文   时间:2015-03-04 12:57:36    阅读次数:140
URAL 1877 Bicycle Codes
Bicycle Codes Time limit: 0.5 second Memory limit: 64 MB Den has two four-digit combination locks for protecting his bicycle from thieves. Every evening he arms the bicycle antitheft alar...
分类:其他好文   时间:2015-03-04 12:57:36    阅读次数:144
[LintCode]k Sum II
Given n unique integers, number k (1<=k<=n) and target. Find all possible k integers where their sum is target.Example Given [1,2,3,4], k=2, target=5, [1,4] and [2,3] are possible solutions....
分类:其他好文   时间:2015-03-04 12:58:47    阅读次数:126
static libtaty not initializer VC
static libtaty not initializer VC...
分类:其他好文   时间:2015-03-04 12:56:57    阅读次数:112
区间k大数查询
import java.util.*; import java.io.*; public class 区间k大数查询 { public static void main(String[] args){ Scanner in=new Scanner(new BufferedInputStream(System.in)); int n = in.nextInt(); int[] num =...
分类:其他好文   时间:2015-03-04 12:56:25    阅读次数:121
poj-1661 Help Jimmy 【DP】
Help Jimmy Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 8955   Accepted: 2871 Description "Help Jimmy" 是在下图所示的场景上完成的游戏。  场景中包括多个长度和高度各不相同的平台。地面是最低的...
分类:其他好文   时间:2015-03-04 12:58:43    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!