-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
NSInteger selectedIndex=0;
NSIndexPath *seletedIndexPath=[NSIndexPath indexPathForRow:selecte...
分类:
其他好文 时间:
2015-03-14 16:58:40
阅读次数:
286
public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); ...
分类:
移动开发 时间:
2015-03-14 12:18:34
阅读次数:
189
*//*** view加载完毕*/- (void)viewDidLoad{ [super viewDidLoad]; NSLog(@"MJOneViewController-viewDidLoad");}/*** view即将显示到window上**/- (void)viewWillAppea...
分类:
其他好文 时间:
2015-03-14 10:53:20
阅读次数:
122
超类即父类,通过 [super setName: @"a"] 可以调用超类方法复合是指一个对象由其他多个对象组成对象初始化@interface Car : NSObject( Engine *engine;)@end@implementation Car- (id) init{ if(self .....
分类:
其他好文 时间:
2015-03-14 06:08:03
阅读次数:
116
Super Jumping! Jumping! Jumping!首先对于动态规划问题要找出其子问题,如果找的子问题是前n个序列的最长上升子序列,但这样的子问题不好,因为它不具备无后效性,因为它的第n+1的数会影响前n个序列的长度,换句话说,如果第n+1个数加上去不一定使得和前n个数加起来就是最长子序...
分类:
其他好文 时间:
2015-03-14 00:57:27
阅读次数:
126
#-*-coding:cp936-*-fromPyQt4importQtCore,QtGui,QtclassRotatePage(QtGui.QFrame):def__init__(self,img,x_pos,y_pos,direction=1,speed=30,step=10):super(Ro...
分类:
其他好文 时间:
2015-03-13 20:17:34
阅读次数:
203
package?com.lei.demo.entity;
import?javax.persistence.*;
@Entity(name="users")
public?class?Users?{
????
????public?Users(){
????????super();
????}
????
????@Id
?...
分类:
编程语言 时间:
2015-03-13 19:09:14
阅读次数:
238
通过spring发布webservice接口
spring jar包+cxf jar Java包 以下文件缺少jar包需要自行去下载
项目结构
1、实体类
package com.test.entity;
public class User {
public User(String name, String pwd, String sex) {
super();
this....
分类:
编程语言 时间:
2015-03-13 16:44:56
阅读次数:
163
根据Neal Krawetz博士的解释,原理非常简单易懂。我们可以用一个快速算法,就达到基本的效果。这里的关键技术叫做"感知哈希算法"(Perceptual hash algorithm),它的作用是对每张图片生成一个"指纹"(fingerprint)字符串,然后比较不同图片的指纹。结果越接近,就说...
分类:
编程语言 时间:
2015-03-13 15:48:17
阅读次数:
880
基于Http的通信packagecom.example.httpgetdemo;
publicclassMainActivityextendsActivity{
@Override
protectedvoidonCreate(BundlesavedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findViewById(R.id.button1)..
分类:
移动开发 时间:
2015-03-13 14:41:17
阅读次数:
159