码迷,mamicode.com
首页 > 移动开发
iOS中的按钮(UIButton)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] ini...
分类:移动开发   时间:2015-08-27 22:58:21    阅读次数:251
iOS中ScrollView(滚屏,引导界面,和判段是否是第一次登陆)
#import "RootViewController.h"#import "SecondViewController.h"#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScr...
分类:移动开发   时间:2015-08-27 22:54:43    阅读次数:222
iOS中的分段控件(UISegmentedControl)和滑块控件(UISlider)
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:移动开发   时间:2015-08-27 22:55:01    阅读次数:228
自定义控件实现广告头自动移动,viewpager的运用,和自己利用xml画图,自定义圆点,构造选择器的方法
1、viewpager在广告头里经常运用到,它是android3后出现的控件,在因此在添加的时候android.support.v4.view.ViewPager.class里,因此在xml定义的时候需要加全名称,同时注意不要后缀名class。下面从demo里学习viewpager的运用。 ...
分类:移动开发   时间:2015-08-27 22:55:26    阅读次数:610
iOS中的UILabel
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:移动开发   时间:2015-08-27 22:54:55    阅读次数:205
iOS中的文本框(UITextField)
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:移动开发   时间:2015-08-27 22:52:29    阅读次数:292
android自定义标题栏
初涉android,在自定义标题栏的时候就遇到了一些问题,由于很多都不懂,花了挺多时间才解决。好了废话不多说,直接上问题:styles.xml 然后再AndroidManifest.xml的对应Activity中引用该主题即可。效果图如下:
分类:移动开发   时间:2015-08-27 22:51:01    阅读次数:153
IOS中AppDelegate类中的方法触发时机-----自定义AppDelegate的写法
@implementation AppDelegate//当应用程序加载时触发,创建window窗口对象,让对象的window成为程序的主窗口,并且可视.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp...
分类:移动开发   时间:2015-08-27 22:52:23    阅读次数:286
iOS中的四中触摸事件的详解 - 平移- 捏合 - 滑动(TouchesBegan,touchesMoved,touchesEnded,touchesCancelled)
RootViewController#import "RootViewController.h"#import "TouchView.h"#import "PanView.h"#import "PinchView.h"@interface RootViewController ()@end@impl...
分类:移动开发   时间:2015-08-27 22:51:54    阅读次数:579
ios开发代码规范
代码规范很重要,一个良好的代码习惯要从一开始就养成公共类和文件的设计(网络请求类、数据库类、Model类、View类,Controller、Handle类、公共头文件)一、文件 1、项目文件必须使用一个有意义的名字。 例如:TestDownImages 2、任何文件的命名不要以中文命名。...
分类:移动开发   时间:2015-08-27 22:49:13    阅读次数:246
Android SDK 在线更新镜像服务器
大连东软信息学院镜像服务器地址:-http://mirrors.neusoft.edu.cn端口:80北京化工大学镜像服务器地址:- IPv4:http://ubuntu.buct.edu.cn/端口:80- IPv4:http://ubuntu.buct.cn/端口:80- IPv6:http:/...
分类:移动开发   时间:2015-08-27 22:48:25    阅读次数:214
IOS中的响应者链
响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
分类:移动开发   时间:2015-08-27 22:45:16    阅读次数:181
iOS中的UIView的基本属性
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:移动开发   时间:2015-08-27 22:45:56    阅读次数:147
iOS-点餐系统
//// ViewController.m// 点餐系统//// Created by YaguangZhu on 15/8/27.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewController...
分类:移动开发   时间:2015-08-27 22:46:00    阅读次数:210
Android不编译某个模块
Android 5.1 源码,编译相关的文件一般在build目录下build/target/product 放了很多mk文件;一般不同的产品会有不同的目录假设我不想编译OpenWnn,在build目录下grep一下“OpenWnn”target/product/full_base.mktarget/...
分类:移动开发   时间:2015-08-27 22:44:11    阅读次数:323
iOS中的分页控件(UIPageControl)
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:移动开发   时间:2015-08-27 22:44:36    阅读次数:216
iOS控制器常见的创建方式有以下几种
>通过storyboard创建>直接创建YTViewController *yt = [[YTViewController alloc]init];>指定xib文件来创建YTViewController *yt = [[YTViewController alloc]initWithNibName:@...
分类:移动开发   时间:2015-08-27 22:36:50    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!