一, remvoeFragment 和 detachFragment 的区别: public?void?removeFragment(Fragment?fragment,?int?transition,?int?transitionStyle)?{
????????if?(DEBUG)?Log.v(TAG,?"remove:?"?+?...
分类:
其他好文 时间:
2014-10-27 14:31:44
阅读次数:
223
placemark(MKPlacemark类的对象)其实是geocoder(MKReverseGeocoder类的对象)的一个属性。从geocoder里面取placemark这个和直接取placemark这个其实区别不大。而我们需要的信息主要就在这个里面了。//这个字典存放基础数据@property...
分类:
其他好文 时间:
2014-10-26 18:13:52
阅读次数:
202
我们所实现的的动画中,很大一部分是让一个属性在起始值和结束值之间变化,例如,我在前文中实现的改变宽度的动画:var widthAnimation = new DoubleAnimation(){From = 0,To = 320,Duration = TimeSpan.FromSeconds(2),...
纪录下自己写的东西!
头文件:
/*
圆弧动作类
*/
class CCArcBy : public cocos2d::CCActionInterval
{
public:
//初始化圆弧动作类
//duration: 动作类的持续时间
//ptCenter: 圆弧的中心点
//deltaAngle: 弧度的变化量,用正负来表示逆时针或顺时针方向
bool initWithDurat...
分类:
其他好文 时间:
2014-10-25 17:24:14
阅读次数:
173
@property在xcode 4.5之前只是单纯的告诉编译器,“我在后面实现了对那个变量的setter和getter方法,你放心吧”,但是如果你不写synthesize配合的话就会出错。synthesize才是代替setter和getter的关键部分。@synthesize在xcode4.5之前是...
分类:
移动开发 时间:
2014-10-25 15:52:52
阅读次数:
164
1 2.@property属性的用法2 * weak(assign) : 代理\UI控件3 * strong(retain) : 其他对象(除代理\UI控件\字符串以外的对象)4 * copy : 字符串5 * assign : 非对象类型(基本数据类型int\float\BOOL\枚举\结构体)
分类:
其他好文 时间:
2014-10-25 15:47:11
阅读次数:
166
1.spring IOC的作用就是用加载配置文件的方式代替在代码中new 对象的方式来实例化对象。
2.IOC 全称:Inversion of Control,中文意思:控制反转
3.依赖注入有两种方式:
设值注入-> 通过添加set方法,并在配置文件的bean中添加property标签(property引用另一个bean)的方式注入
构造注入-》通过构造方法,并在配置文件的bean中添加constructor-arg标签的方式注入...
分类:
编程语言 时间:
2014-10-25 00:52:19
阅读次数:
283
Where To StartLearning a new framework can be daunting, but it's also exciting. To smooth your transition, we've attempted to create very clear, conci...
分类:
其他好文 时间:
2014-10-24 20:43:11
阅读次数:
183
记得在cocoa中也有property的概念,python中的property与cocoa里的property好像是差不多的。下面是它的两种用法。用法一:class test(object): def __init__(self): print "init is calling"...
分类:
编程语言 时间:
2014-10-24 18:05:25
阅读次数:
239
首先是一个库:然后设置一个工具类.h 1 @interface HMFoundLocation : NSObject 2 3 AS_SINGLETON(HMFoundLocation) 4 5 @property(nonatomic,strong)NSString *address; 6 7 ...
分类:
移动开发 时间:
2014-10-24 18:02:48
阅读次数:
240