ios3.0
ios5.0
步骤
应用收到内存警告。
每个ViewController调用自己的didReceiveMemoryWarning方法.
判断view是否当前显示在屏幕上,如果是当前页,则流程结束。
ViewController调用viewWillUnload方法.
ViewController设置它的View为空。(清view)...
分类:
其他好文 时间:
2015-01-20 13:48:49
阅读次数:
218
//
// ViewController.swift
// UITextField完成输入后关闭键盘的方法
//
// Created by
悦兑科技 on 15/1/19.
// Copyright (c) 2015年 BSY. All rights reserved.
//
import UIKit
class Vie...
分类:
移动开发 时间:
2015-01-19 14:27:29
阅读次数:
268
要连二次连线,
1,是连接 IBOutlet ,从界面上的 label 按住 control 的同时连到 viewcontroller.h 中。
2,是连接 button 的事件,从按钮的事件连接到 view controller.m 中。
再做些小修改就可以了。
label.text = @"hello yourname";...
分类:
移动开发 时间:
2015-01-18 22:46:12
阅读次数:
394
编写带有点击特效的UIButton效果:源码://// ViewController.m// Button//// Created by XianMingYou on 15/1/18.// Copyright (c) 2015年 XianMingYou. All rights reserve...
分类:
其他好文 时间:
2015-01-18 21:05:42
阅读次数:
252
用Easing函数实现碰撞效果工程中需要的源码请从这里下载:https://github.com/YouXianMing/EasingAnimation源码://// ViewController.m// EasingView//// Created by YouXianMing on 15/...
分类:
其他好文 时间:
2015-01-17 22:08:38
阅读次数:
203
popViewControllerAnimated后,进入的viewcontroller不能即时刷新。这时它不执行viewDidLoad,但执行viewWillAppear:(BOOL),所以只要把刷新逻辑写到viewWillAppear:(BOOL)里就OK了。但要注意当有刷新label这样的vi...
分类:
移动开发 时间:
2015-01-17 17:48:19
阅读次数:
169
1.UIView转场过渡动画 1 // 2 // ViewController.m 3 // UIViewAnimationTest 4 // 5 // Created by hellovoidworld on 15/1/16. 6 // Copyright (c) 2015年 hellovoidw...
分类:
移动开发 时间:
2015-01-16 16:11:04
阅读次数:
214
很多伙伴们们总是认为缩放图片的时候很是麻烦,因为不知道从哪里下手,特别是面对新的开发语言,其实图片缩放有很多种方法,但是万变不离其宗,那就是frame,所以,不要想的那么高大上。下面是一个利用蒙板实现的图片缩放demo,感兴趣的伙伴们可以看一下。
//
// ViewController.swift
// 图片的缩放
//
// Created by
悦兑科...
分类:
编程语言 时间:
2015-01-16 10:04:14
阅读次数:
352
#ViewController.m#import "ViewController.h"@interface ViewController ()/** * storybord连线 */@property (weak, nonatomic) IBOutlet UIImageView *imageVie....
分类:
移动开发 时间:
2015-01-15 23:34:53
阅读次数:
290
iOS 页面间的跳转目前有3种方式:1、利用StroyBorad这里以TableView的静态cell为例,选中第一个cell按住ctrl往新的ViewController上拖,弹出对话框选择show或present modally2、代码跳转- (IBAction)Push:(id)sender ...
分类:
移动开发 时间:
2015-01-15 17:57:01
阅读次数:
222