ios
第三个电饭锅
这个作者很懒,什么都没留下…
展开
-
iosk开发结构
总共有3个模块1.storyboard2.原创 2014-09-07 14:03:36 · 774 阅读 · 0 评论 -
iOS 8 Metal Tutorial with Swift: Getting Started
In iOS 8, Apple released a new API for GPU-accelerated 3D graphics called Metal.Metal is similar to OpenGL ES, in that it is a low-level API for interacting with 3D graphics hardware.The diffe转载 2014-09-11 23:52:37 · 1510 阅读 · 0 评论 -
Swift之 ? 和!
Swift之 ? 和 !04 June 2014Swift语言使用var定义变量,但和别的语言不同,Swift里不会自动给变量赋初始值,也就是说变量不会有默认值,所以要求使用变量之前必须要对其初始化。如果在使用变量之前不进行初始化就会报错:var stringValue : String //error: variable 'stringValue' us转载 2014-09-11 18:55:59 · 615 阅读 · 0 评论 -
Card Game Mechanics in Sprite Kit with Swift
Card Game Mechanics in Sprite Kit with Swift Brian Broom on August 26, 2014TweetLearn how to implement basic card game mechanics and animation.For over 20 y转载 2014-09-12 13:48:54 · 1783 阅读 · 0 评论 -
flappybird + swift + spriteKit
//// GameScene.swift// FlappyBird//// Created by Nate Murray on 6/2/14.// Copyright (c) 2014 Fullstack.io. All rights reserved.//import SpriteKitclass GameScene: SKScene,转载 2014-09-12 14:02:05 · 2694 阅读 · 0 评论 -
优秀的素材网站
http://www.gameartguppy.com/原创 2014-09-12 14:07:10 · 990 阅读 · 1 评论 -
ios开发七 计算器代码研究
//// zzcalculaterFunction.h// calculaterByOC//// Created by Will Zhang/WKS/Wistron on 14-8-6.// Copyright (c) 2014年 Will Zhang. All rights reserved.//#import @interface zzcalculaterFunct原创 2014-09-04 00:41:35 · 2318 阅读 · 1 评论 -
ios开发 八 按钮代码研究
//// ViewController.h// LTBounceSheet//// Created by ltebean on 14-9-3.// Copyright (c) 2014年 ltebean. All rights reserved.//#import @interface ViewController : UIViewController//按钮回调函数原创 2014-09-04 11:38:25 · 647 阅读 · 0 评论 -
xcode cocos2dx 2.2 使用c++11
deployment Target 7.0ios deployment Target 7.0c++ language dialect c++11c++ standard library l原创 2014-10-10 13:33:41 · 1757 阅读 · 0 评论 -
ios学习 持续更新
截屏//将整个self.view大小的图层形式创建一张图片 UIGraphicsBeginImageContext(self.view.frame.size); CGContextRef context =UIGraphicsGetCurrentContext(); [self.view.layerrenderInContext:context];转载 2014-12-10 17:18:17 · 479 阅读 · 0 评论 -
优秀的案例网站
http://www.raywenderlich.com/原创 2014-09-11 23:44:28 · 540 阅读 · 0 评论 -
Sprite Kit 案例
目录Sprite Kit的优点和缺点Sprite Kit vs Cocos2D-iPhone vs Cocos2D-X vs UnityHello, Sprite Kit!横屏显示移动怪兽发射炮弹碰撞检测: 概述碰撞检测: 实现收尾何去何从? 在iOS 7中内置了一个新的Sprite Kit框架,该框架转载 2014-09-11 23:38:55 · 1108 阅读 · 0 评论 -
初学ios
定时器[NSTimer scheduledTimerWithTimeInterval:0.02 target:self selector:@selector(animateWave) userInfo:nil repeats:YES];添加成员@interface ViewController ()//Objective-C 2.0中的Category语法 ,Categ原创 2014-09-07 14:54:33 · 610 阅读 · 0 评论 -
iOS UI核心
转载 2014-09-08 23:47:17 · 1164 阅读 · 0 评论 -
ios开发(四)
UIButton* button2 = [[UIButton alloc] initWithFrame:CGRectMake(10, 50, 100, 80)]; button2.tag = 1; button2.backgroundColor = [UIColor redColor]; [self.window addSubview:button2];原创 2014-08-27 00:46:01 · 534 阅读 · 0 评论 -
ios开发(一)
int main(int argc, char * argv[]){ //程序的入口 @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }}//应用程序的入口- (BOOL)applicatio原创 2014-08-26 23:04:40 · 658 阅读 · 0 评论 -
ios开发(二)
CFBundleDevelopmentRegion//区域 en CFBundleDisplayName//显示的名字 ${PRODUCT_NAME} CFBundleExecutable//执行的程序的名字 ${EXECUTABLE_NAME} CFBundleIdentifier//app上架唯一的id as.${PRODUCT_NAME:rfc1034identifier}原创 2014-08-26 23:24:23 · 817 阅读 · 0 评论 -
ios UINavigation 用法示例
//// AppDelegate.m// simpleNavigation//// Created by TinyUlt on 14-9-10.// Copyright (c) 2014年 TinyUlt. All rights reserved.//#import "AppDelegate.h"#import "RootViewController.h"@implem原创 2014-09-10 15:08:27 · 1379 阅读 · 0 评论 -
ios开发(三)
@property (weak, nonatomic) IBOutlet UITextField *myTextField;@property (weak, nonatomic) IBOutlet UIButton *myButton;- (IBAction)buttonAction:(id)sender;原创 2014-08-27 00:10:24 · 519 阅读 · 0 评论 -
ios开发(五)
声明property的语法为:@property (参数1,参数2) 类型 名字;如:@property(nonatomic,retain) UIWindow *window;其中参数主要分为三类:读写属性: (readwrite/readonly)setter语意:(assign/retain/copy)原子性: (atomicity/no原创 2014-08-27 10:28:33 · 489 阅读 · 0 评论 -
ios开发(六)
在写java的时候都会有接口interface这个概念,接口就是一堆方法的声明没有实现,而在OC里面,Interface是一个类的头文件的声明,并不是真正意义上的接口的意思,在OC中,接口是由一个叫做协议的protocol来实现的。这个里面可以声明一些方法,和java不同的是,它可以声明一些必须实现的方法和选择实现的方法。这个和java是完全不同的。下面我们就用一个例子来说转载 2014-08-27 11:28:09 · 531 阅读 · 0 评论 -
[iOS]通过openURL启动第三方APP传参
=====工程A=====0. 建立工程A, 先调出URL Types1.Add Row 一个URL Schemes 并随便起个名字 (这就是调用这个app的唯一链接)2. 在工程A的AppDelegate.m里加入以下系统方法: (这个方法会捕获调用本工程的程序传递过来的URL identifier文本)1234转载 2014-12-10 16:03:58 · 1253 阅读 · 0 评论