码迷,mamicode.com
首页 >  
搜索关键字:super 跳级    ( 6769个结果
2014 Super Training #1 F Passage 概率DP
原题: HDU 3366 http://acm.hdu.edu.cn/showproblem.php?pid=3366本来用贪心去做,怎么都WA,后来看网上原来是一个DP题。首先按P/Q来做排序,即P越大,Q越小就越好,这样可以确保先选最优的路走。dp[i][j]表示已经到了第i条路(说明前i-1条...
分类:其他好文   时间:2014-07-08 00:17:10    阅读次数:273
UIDocumentInteractionController 文件预览
//创建并从底部弹出来 - (void)viewDidLoad {     [super viewDidLoad]; [self setupDocumentControllerWithURL:fileURL];     CGRect rect = CGRectMake(0, 0, ScreenWidth, ScreenHeight); //    [s...
分类:其他好文   时间:2014-06-28 08:34:02    阅读次数:202
深入分析:Fragment与Activity交互的几种方式(三,使用接口)
第一步:我们需要在Fragment中定一个接口,并确保我们的容器Activity实现了此接口: public interface onTestListener { public void onTest(String str); } @Override public void onAttach(Activity activity) { super.onAttach(act...
分类:其他好文   时间:2014-06-27 23:30:44    阅读次数:229
android TextView实现文字滚动效果
1,实现自定义TextView并实现isFocused()方法,代码如下: 1 public class RollTextView extends TextView{ 2 3 public RollTextView(Context context) { 4 super(co...
分类:移动开发   时间:2014-06-27 16:46:16    阅读次数:265
获得现在的时间
有没有那么一个时候,特别想知道现在的时间呢。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"RootV...
分类:其他好文   时间:2014-06-27 13:21:01    阅读次数:150
ios - cannot assign to 'self' outside of a method in the init family
今天重写 -(id) initwithId:(NSInteger *)word_id word:(NSString *)word detail:(NSString *)detail方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super in...
分类:移动开发   时间:2014-06-26 15:17:17    阅读次数:638
NSKeyedArchiver的使用
NSKeyedArchiver是加密形式的保存数据。上代码。- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"N...
分类:其他好文   时间:2014-06-26 11:24:49    阅读次数:161
使用UIScrollView和UIPageControl做一个可以用手势来切换图片的效果
利用UIScrollView的滚动效果来实现,先上图: 实现过程是:在viewController里先加入UIScrollView和UIPageControl: -(void) loadView { [super loadView]; UIScrollView *scrollView = [[UIScrollView alloc] initWithFra...
分类:其他好文   时间:2014-06-26 07:08:22    阅读次数:199
SufaceView(绘图类)
publicclassMainActivityextendsActivity{ GrameViewgrameView;@OverridepublicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);gr...
分类:其他好文   时间:2014-06-25 11:36:52    阅读次数:238
andriod自定义视图
一、通过View实现自定义视图通过构造函数创建可视界面public class MyView extends View { // Constructor required for in-code creation public MyView(Context context) { super...
分类:其他好文   时间:2014-06-25 11:26:33    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!