报错:Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set?原因分析:在S...
分类:
移动开发 时间:
2015-08-03 18:41:13
阅读次数:
201
在默认情况下当发生横竖屏切换时,当前Activity中的fragment都会通过Fragment.instantiate重新生成,该方法将使用默认的构造函数来生成相应的Fragment,所以如果没有默认构造函数的话将会报错,例如: class MyFragment {public MyFragmen...
分类:
其他好文 时间:
2015-07-30 13:23:50
阅读次数:
103
严重:?StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException:?Error?creating?bean?with?name?‘webSocketHandlerMapping‘?defined?in?class?path?resource?[org/sp...
分类:
编程语言 时间:
2015-07-28 16:10:37
阅读次数:
1896
鼠标事件:OnMouseEnter():鼠标进入OnMouseExit():鼠标移出OnMouseDown():鼠标点击OnMouseUp():鼠标抬起static GameObject Instantiate() 克隆static void Destroy()位置 、 材料 、碰撞 、渲染地形、预...
分类:
编程语言 时间:
2015-07-22 20:33:47
阅读次数:
120
Root
using UnityEngine;
using System.Collections;
public class RootScript : MonoBehaviour {
public GameObject profab;
void Awake()
{
Debug.Log(Time.time + "Root Awake");
}...
分类:
其他好文 时间:
2015-07-20 16:37:04
阅读次数:
96
1. 抛异常“lua: LuaInterface: cannot instantiate interpreter”,如图:目前,重新生成dll之后,会多生成一个lua51.dll到\Lua\5.1\clibs目录中,删除了即可(好像LuaInterface.dll版本不对,也会有这种类似的问题)。
分类:
其他好文 时间:
2015-07-20 15:55:41
阅读次数:
105
Define an interface for creating on object, but let subclasses decide which class to instantiate Factory Method lets a class defer instantiation to subclasses.
定义一个用于创建对象的接口,让子类决定实例化哪一类。
抽象产品类Pr...
分类:
其他好文 时间:
2015-07-18 14:13:34
阅读次数:
149
在xerces-c的官方网站上有文章指引说明是如何进行xml schema校验。http://xerces.apache.org/xerces-c/schema-3.html
给出的例子代码:
// Instantiate the DOM parser.
XercesDOMParser parser;
parser.setDoNamespaces(true);
parser.setDoSche...
分类:
其他好文 时间:
2015-07-10 11:27:50
阅读次数:
153
在weblogic安装完后,接下来就可以创建domain,AdminSever了。第1步:$ cd /app/sinova/Oracle/wlserver_10.3/common/bin$ ./config.sh Unable to instantiate GUI, defaulting to co...
分类:
Web程序 时间:
2015-07-07 19:26:46
阅读次数:
319
工厂方法模式(Factory method pattern)flyfish 2015-7-4工厂方法模式正式定义 - 引用《HeadFirst 设计模式》
Define an interface for creating an object,but let subclasses decide
which class to instantiate.Factory Method lets a...
分类:
其他好文 时间:
2015-07-04 19:47:55
阅读次数:
149