摘要: 使用字典的坏处 一般情况下,设置数据和取出数据都使用“字符串类型的key”,编写这些key时,编辑器没有智能提示,需要手敲 dict[@"name"] = @"Jack"; NSString *name = dict[@"name"]; 手敲字符串key,key容易写错 Key如果写错了,编译器不会 阅读全文
posted @ 2016-11-25 21:49 iFat 阅读(271) 评论(0) 推荐(0) 编辑
摘要: [1]定义fragment继承V4包中的Fragment [2]定义的activity要继承v4包中的FragmentActivity [3]通过这个方法getSupportFragmentManager 获取Fragment的管理者 import android.os.Bundle; import 阅读全文
posted @ 2016-11-25 21:16 iFat 阅读(724) 评论(0) 推荐(0) 编辑
摘要: import android.os.Bundle; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.view.Menu; import android.view.View; import android.v... 阅读全文
posted @ 2016-11-25 21:06 iFat 阅读(780) 评论(0) 推荐(0) 编辑