- 博客(46)
- 资源 (7)
- 收藏
- 关注
原创 centos配置apache、ssl、php、mysql、tomcat
1. 安装apachehttps://www.cnblogs.com/lauren1003/p/5993654.html2. 安装php7https://jingyan.baidu.com/article/ed2a5d1f77ed8b09f6be171c.html3. 安装tomcathttp://www.ha97.com/4523.htmlhttps://www.cnblogs.com/liux...
2018-03-21 19:32:44
248
原创 IOS学习(二十二)runloop与timer
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //方式1 //自动加在runloop下,运行 //这种方式下,如果滑动动textview,timer会暂停,即run方法不会被执行 [NSTimer scheduledTimerWithTimeInterval:1.0 target:s
2016-12-24 22:36:42
384
原创 IOS学习(二十一)block简单使用
@interface Mother : NSObject@property(nonatomic, copy) void(^action)();-(void)goOutSide:(void(^)(int, int))action;@end#import "Mother.h"@implementation Mother//形参方式-(void)goOutSide:(void (
2016-12-22 22:21:42
320
原创 IOS学习(二十)归档解档
// Person *person = [[Person alloc] init];// person.age = 16;// person.name = @"tom";// person.sex = @"male";// // [person description];// //
2016-12-21 22:40:05
333
原创 ios学习(十九)NSThread简单使用
#import "ViewController.h"@interface ViewController ()-(void)printMuch;@property (weak, nonatomic) IBOutlet UIImageView *picImg;@end@implementation ViewController- (IBAction)buttonClicked:(i
2016-12-20 22:44:55
285
原创 IOS学习(十八)简单slideMenu
#import "MainViewController.h"#import "FirstViewController.h"#import "SecondViewController.h"#import "MenuViewController.h"@interface MainViewController ()@property(nonatomic, strong) NSArray *
2016-12-20 16:30:39
628
原创 IOS学习(十七)多视图管理
#import "MainViewController.h"#import "CustomTabBar.h"#import "OCViewController.h"#import "JAVAViewController.h"#import "PHPViewController.h"@interface MainViewController ()@property(nonatomic
2016-12-15 00:05:26
408
原创 IOS学习(十六)自定义tabBar
#import "CustomTabBarItem.h"@implementation CustomTabBarItem+ (instancetype) itemWithFrame:(CGRect)frame title:(NSString *)title{ CustomTabBarItem *item = [CustomTabBarItem buttonWithType:UIBu
2016-12-13 23:09:54
313
原创 ios学习(十五)微博布局
@interface MainViewController ()@property(nonatomic, strong) WBTabview *tableView;@property(nonatomic, strong) WBTableViewModel *tableModel;@end@implementation MainViewController- (void)viewDi
2016-12-12 22:30:28
403
原创 IOS学习(十四)城市级联操作(两个tabview)
#import "MainViewController.h"@interface MainViewController ()@property(nonatomic, strong) UITableView *areaTabview;@property(nonatomic, strong) UITableView *subAreaTabview;@property(nonatomic,
2016-12-09 23:43:30
417
原创 IOS学习(十三)UIScrollView下拉加载更多
//// FootView.h//#import //下拉时的状态typedef enum{ FootViewDragging,//开始拖拽 FootViewReadyLoading,//装备加载 FootViewEndDragging//松手}FootViewDragStatus;@interface FootView : UIView@prope
2016-12-07 21:58:11
1475
原创 IOS学习(十二)plist 2 model操作
plist文件属性model类属性(属性名称必须要与plist中的保持一致)#import @interface Stutent : NSObject @property(nonatomic, copy) NSString *name; @property(nonatomic, copy) NSNumber *age; - (instance
2016-12-04 22:26:56
346
原创 IOS学习(十一)UITabViewCell的复用
//自定义必须重写该初始化方法- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ NSLog(@"init"); self = [super initWithStyle:style reuseIdentifi
2016-12-01 21:51:59
711
原创 IOS学习(十)UITabViewCell的创建方式
1. xlb方式//// CustomCellTableViewCell.h//#import @interface CustomCellTableViewCell : UITableViewCell@property (weak, nonatomic) IBOutlet UILabel *titleName;@property (weak, nonatomic) IBOut
2016-11-30 22:21:53
978
1
原创 IOS学习(九)UITabView使用及几种常见的创建方式
1. 纯代码创建- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor = [UIColor grayColor]; //style:UITableViewStyleGr
2016-11-30 00:24:54
756
原创 IOS学习(八)滚动视图实现轮播
@interface RollingViewController ()@property(nonatomic, strong) UIScrollView *srcollview;@property(nonatomic, strong) UIPageControl *pageControl;@property(nonatomic, strong) NSTimer *timer;@proper
2016-11-29 00:20:11
539
原创 IOS学习(七)UITabBarViewController标签视图控制器
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. [self setWindo
2016-11-27 23:27:11
338
原创 IOS学习(六)导航视图控制器
Appdelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen]
2016-11-25 23:37:26
310
原创 IOS学习(五)UIImageView
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(30, 100, 200, 100)]
2016-11-24 23:22:27
249
原创 IOS学习(四)UIButton
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; //初始化时,同时设置样式 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; but
2016-11-24 22:38:41
252
原创 IOS学习(三)UILabel
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; label
2016-11-23 23:18:20
253
原创 IOS学习(三)bounds与frame的区别
- (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor orangeColor]; UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; view1.
2016-11-23 22:42:57
258
原创 IOS学习(二)父子视图
-(void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(30, 30, 100, 100)]; v
2016-11-23 21:56:23
453
原创 IOS学习(一)视图创建
抛弃storyBoard,纯代码- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //大小与屏幕保持一致 self.window = [[UIWindow alloc] initWithFrame:
2016-11-23 21:15:59
263
原创 C++基础面试题
1、局部变量能否和全局变量重名? 答:能,局部会屏蔽全局。要用全局变量,需要使用"::" ;局部变量可以与全局变量同名,在函数内引用这个变量时,会用到同名的局部变量,而不会用到全局变量。对于有些编译器而言,在同一个函数内可以定义多个同名的局部变量,比如在两个循环体内都定义一个同名的局部变量,而那个局部变量的作用域就在那个循环体内 5、static全局变量与普通的全局变量有什么区别?
2014-02-21 13:13:33
538
转载 android handler消息机制
转自:http://blog.sina.com.cn/s/blog_624012330100rkkr.htmlAndroid笔记--handler机制 一、重要参考资料【参考资料】 目前来看,下面的几个网址中的内容质量比较不错,基本不需要再读别的网址了。1、android消息机制一 http://xtfncel.javaeye.com/blog/663517
2013-12-16 11:40:07
537
转载 android 图标资源
这里先给大家 推荐两个 找图标的 搜索引擎 http://findicons.com/ 这个我也在用 大家也可以试试 找个图标还是很easy的。 http://www.iconfinder.com/ 这个是英文的也不错。
2013-11-30 14:27:17
664
原创 android使用编译好的libffmpeg.so 以及 NDK一些注意的地方
1.把编译好的libffmpeg.so拷贝到E:\android-ndk-r9\platforms\android-9(10,13,14等)\arch-arm\usr\lib的文件夹中(如果嫌麻烦,可以删除“platforms”文件夹中的其他文件夹,只保留一个就可以了,比如只保留“android-9”这个文件夹)) 2. System.loadLibrary("avutil");
2013-10-18 17:28:37
2160
转载 在Android C/C++层添加LOG调试输出调试
http://www.360doc.com/content/11/0519/15/474846_117915969.shtml#
2013-10-15 11:03:23
582
转载 android ndk 环境搭建
转自:http://www.cnblogs.com/baronzhao/archive/2012/07/10/2585181.html本文主内容:1、 Android NDK 安装2、 安装Cygwin与使用NDK编译3、 在Eclipse中集成C/C++开发环境CDT4、 安装Sequoyah插件5、 JNI编译环境配置 本文建立在已经完成Android
2013-10-11 17:30:13
621
转载 android 横竖屏 相关
转自:http://blog.163.com/bella_zeng/blog/static/203864111201291014249647/方法一:在AndroidManifest.xml中配置如果不想让软件在横竖屏之间切换,最简单的办法就是在项目的AndroidManifest.xml中找到你所指定的activity中加上android:screenOrientation属性,
2013-10-11 11:16:03
484
转载 shape和selector的结合使用
转自:http://www.cnblogs.com/top5/archive/2012/05/10/2494763.html
2013-09-18 11:22:54
458
转载 Android常用URI收藏
http://zhuang0393.blog.163.com/blog/static/928510420130224016779/一、打开一个网页,类别是Intent.ACTION_VIEW12Uri uri = Uri.parse("http://www.android-study.com/");Intent intent
2013-04-16 22:09:45
1049
转载 初学Android,增加手势到手势库(五十)
http://blog.youkuaiyun.com/lee576/article/details/7991563http://www.himigame.com/android-game/340.html
2013-04-02 22:14:53
677
转载 Android 菜单(OptionMenu)大全 建立你自己的菜单
http://www.cnblogs.com/salam/archive/2011/04/04/2005329.html
2013-02-27 23:15:10
367
转载 android 左右滑动
http://www.cnblogs.com/hanyonglu/archive/2012/02/13/2349827.html
2013-02-26 12:37:11
372
转载 Android XML解析
Android XML解析 (2012-04-23 17:27) 标签: div Android hidden 分类:Android 在Android平台上可以使用Simple API for XML(SAX) 、 Document Object Model(DOM)和Android附带的pull解析器解析XML文件。 下面是本
2013-01-02 17:27:22
605
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅