自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

转载 多线程--关于信号量和互斥锁的比喻

这阵子学习多线程方面的知识发现自己对于一些基本

2014-08-14 19:59:13 508

原创 cocos2dx3.0 自动绑定自定义的C++到lua

最近,寻找cocos2dx3.0中自动绑定自定义的C++到lua百度谷歌搜了半天,内容都是根据旧版本写的方法,最后还是到官方的新版更新说明中发现的。所以其实我们碰到的很多新问题都可以直接到官方去寻找答案。而且官方肯定讲的也更加清楚一点。好了废话不多说了。在3.0中,官方写了个绑定生成器工具来做lua绑定。在cocos2dx文件目录下的tool文件夹下的tolua下,有一些已经写好的

2014-04-16 17:40:16 1973

转载 linux 下 .sh 文件语法

注:本文章是我从新浪博客(用户名为老徐) 复制的,原文链接为 http://blog.sina.com.cn/s/blog_54f82cc201010hfz.html介绍:1 开头程序必须以下面的行开始(必须方在文件的第一行):#!/bin/sh符号#!用来告诉系统它后面的参数是用来执行该文件的程序。在这个例子中我们使用/bin/sh来执行程序。当编写脚本完成时,如果要执行

2014-02-22 18:53:22 533

翻译 UITableView Class 参考 (1)<Creating Table View Cells>

Creating Table View Cells– registerNib:forCellReuseIdentifier:– registerClass:forCellReuseIdentifier:– dequeueReusableCellWithIdentifier:forIndexPath:– dequeueReusableCellWithIdentifier:re

2014-01-13 16:47:15 571

翻译 UIViewController Class 参考3 (Testing for Specific Kinds of View Transitions,Configuring the View’s L)

Testing for Specific Kinds of View Transitions– isMovingFromParentViewController– isMovingToParentViewController– isBeingPresented– isBeingDismissedisMovingFromParentViewController

2014-01-11 00:40:36 863

翻译 UIViewController Class 参考2(Managing the View,Responding to View Events)

Managing the View   view  property– isViewLoaded– loadView– viewDidLoad   title  property– viewDidUnload Deprecated in iOS 6.0– viewWillUnload Deprecated in iOS 6.0viewThe view tha

2014-01-11 00:09:42 666

翻译 UIViewController Class 参考1(Creating a View Controller Using Nib Files,Handling Memory Warnings)

Creating a View Controller Using Nib FilesinitWithNibName:bundle:Returns a newly initialized view controller with the nib file in the specified bundle.从指定的bundle中通过nib文件得到新的初始化的视图控制器

2014-01-10 22:59:35 845

翻译 Core Animation Basics-Core Animation Programming Guide (1)

Core Animation provides a general purpose system for animating views and other visual elements of your app. Core Animation is not a replacement for your app’s views. Instead, it is a technology that i

2014-01-02 16:47:36 700

翻译 URL Loading System Programing Guide (2)

Using NSURLSessionThe NSURLSession class and related classes provide an API for downloading content via HTTP. This API provides a rich set of delegate methods for supporting authentication and g

2013-12-30 22:32:30 1182

翻译 URL Loading System Programing Guid (1)

This guide describes the Foundation framework classes available for interacting with URLs and communicating with servers using standard Internet protocols. Together these classes are referred to as th

2013-12-30 20:38:11 742

翻译 类簇Class cluster

A class cluster is an architecture that groups a number of private, concrete subclasses under a public, abstract superclass. The grouping of classes in this way provides a simplified interface to the

2013-12-28 16:30:15 668

翻译 在响应链中使用视图控制器Using View Controllers in the Responder Chain[苹果官方文档的翻译]

View controllers are descendants of the UIResponder class and are therefore capable of handling all sorts of events. When a view does not respond to a given event, it passes that event to its superv

2013-12-22 00:53:48 504

翻译 视图控制器中的资源管理 Resource Management in View Controllers [苹果官方文档的翻译]

View controllers are an essential part of managing your app’s resources. View controllers allow you to break your app up into multiple parts and instantiate only the parts that are needed. But more th

2013-12-21 22:05:57 617

翻译 线程编程指南 Threading Programming Guide (2)[苹果官方文档的翻译]

线程是应用内实现多个执行路径的轻量级方法。在系统级别,程序并排地运行,系统根据每个程序的需求分配执行时间。在每个应用内容,可能一个或者多个执行线程,这样可以同步地或者以类似同步的方式执行不同的任务。实际上,系统本身管理着这些执行线程,安排他们运行可用的内核,或者俺需要打断他们允许其他线程运行。

2013-12-15 18:43:36 1208

翻译 线程编程指南 Threading Programming Guide (1)[苹果官方文档的翻译]

IntroductionThreads are one of several technologies that make it possible to execute multiple code paths concurrently inside a single application. Although newer technologies such as operation obj

2013-12-15 12:50:13 738

翻译 iOS NSObject Class 详解

OverviewNSObject is the root class of most Objective-C class hierarchies. Through NSObject, objects inherit a basic interface to the runtime system and the ability to behave as Objective-C obj

2013-12-15 11:55:01 876

翻译 对象建模概念 Object modeling

Object modelingObject modeling is the process of designing the objects or classes through which an object-oriented application examines and manipulates some service. Numerous modeling techniques a

2013-12-15 11:36:43 1310

翻译 iOS 通知机制 Notifications (三)

Posting a NotificationYou can post notifications within your own application or make them available to other applications. See “Posting Local Notifications” for the former and “Posting Distrib

2013-12-15 00:24:03 13260 1

翻译 iOS 通知机制 Notifications (二)

Registering for a NotificationYou can register for notifications from within your own application or other applications. See“Registering forLocal Notifications”(page 12) for the former and“Reg

2013-12-14 22:07:05 861

翻译 iOS 通知机制 Notifications (一)

NotificationsA notification encapsulates information about an event, such as a window gaining focus or a network connection closing. Objects that need to know about an event (for example, a file

2013-12-14 17:25:12 1298

翻译 UIView的setNeedsDisplay方法

setNeedsDisplayMarks the receiver’s entire bounds rectangle as needing to be redrawn.让接收者的整个边界矩形在需要时被重画。- (void)setNeedsDisplayDiscussionYou can use this method or the setNeedsDisplayInRect:

2013-08-06 23:28:09 557

翻译 UIView中的drawRect方法

Draws the receiver’s image within the passed-in rectangle.用传进来的矩形绘制图形。- (void)drawRect:(CGRect)rectParametersrectThe portion of the view’s bounds that needs to be updated. The first time you

2013-08-06 23:23:53 668

翻译 Target-Action in UIKit

The UIKit framework also declares and implements a suite of control classes; the control classes in this framework inherit from theUIControl class, which defines most of the target-action mechanis

2013-07-31 17:09:49 542

翻译 UIViewController Class Reference

【翻译自官方的类参考文档】Overview概览The UIViewController class provides the fundamental view-management model for all iOS apps. You rarely instantiateUIViewController objects directly. Instead, you instant

2013-07-25 20:31:11 652

翻译 ASIHTTPRequest

What is ASIHTTPRequest?ASIHTTPRequest是什么?ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. I

2013-07-10 10:18:11 487

翻译 Transitioning to ARC Release Notes

[翻译自官方文档]Automatic Reference Counting (ARC) is a compiler feature that provides automatic memory management of Objective-C objects. Rather than having to think about retain and release operations, A

2013-07-05 23:20:46 547

翻译 Xcode Workspace

A workspace is an Xcode document that groups projects and other documents so you can work on them together. A workspace can contain any number of Xcode projects, plus any other files you want to inclu

2013-07-05 10:54:46 1382

翻译 Xcode Scheme

An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.Xcode scheme定义了:1,待编译的一系列的targets;2,编译时使用的配置 ;3,待执行的一系列测试You ca

2013-07-05 09:51:09 1279

翻译 Xcode Target

A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. A target defines a single product; it organizes the inputs i

2013-07-04 17:11:16 798

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除