自定义博客皮肤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)
  • 收藏
  • 关注

在真机上运行一个程序的过程以及将app发布到Appstore上的过程

在真机上运行一个程序的过程1.打开钥匙串 ,从证书颁发机构请求证书,产生一个CertificateSigningRequest.certSigningRequest文件(csr 文件和测试机【iPad、iPhone等】有关,这个设备在其他机器上运行的话,只要将该证书拷过去就能使用)2.生成 cer证书:追加一个开发者证书 选择 继续,AppID选择 项目的Bundle Identi...

2014-09-05 18:19:59 194

Microsoft Office word 2011 for mac 显示格式刷工具

mac office word2011中格式刷的图标是:,如果工具栏中没有显示,你可以:视图——工具栏——自定义工具栏和菜单——切换到“命令”选项卡,如 果你知道某个工具属于哪中类型,那么在左边的框内切换都对应的标签(比如,你要添加格式刷按钮,他属于“格式”,那么你选择 “格式”),在右边的框内就显示了对应类别所有的工具,你选择“格式”,将“格式”工具拖入word中的菜单栏。如果你不...

2014-08-06 10:40:55 546

彻底删除iOS应用,包括沙盒及开发者里边的东西

1.长按图标,出现X号删除2.clean build folder3./Users/websa/Library/Developer/Xcode/DerivedData 下边的文件删除4./Users/websa/Library/Application Support/iPhone Simulator/7.1/Applications 删除文件...

2014-05-08 16:06:40 562

播放视频

播放视频方法一:MPMoviePlayerController *moviePlayer;moviePlayer=[[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:[coursewareRow objectForKey:@"网址"]]];// moviePlayer=[[MPMov...

2014-05-05 21:16:32 117

流式布局界面

 想让图标按流式布局,更改控件的Autosizing属性:四周都不要固定 

2014-03-04 12:49:08 164

原创 iOS流式布局

想让图标按流式布局,更改控件的Autosizing属性:四周都不要固定  

2014-02-22 14:01:36 424

GridView相关属性

<asp:GridView ID="GridViewUsers" runat="server" AllowPaging="True" DataSourceID="ObjUsers" ...

2014-02-13 20:25:33 100

原创 无法找到资源

 这种错误一般是由于路径没有设对导致的在.aspx文件中写入下边的语句,一般是缺少了 CodeFile字段,添加就可以解决<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addItem.aspx.cs" CodeFile="~/Backstage/addItem.aspx.cs" Inherits="bjcs...

2014-02-08 14:29:15 1514

如何取得GridView被隐藏列的值

设置一个Css类:<style type="text/css"> .hidden { display: none; } </style>随后在GridView的列编辑对话框中,对需要进行隐藏的列进行设置,分别设置FootStyle,HeaderStyle,ItemStyle...

2014-01-28 11:57:01 77

原创 重定向关闭页面

1.Response.Redirect("XXX.aspx",true)——直接转向新的页面,原窗口被代替;2. Response.Write("<script>window.open(XXX.aspx','_blank')</script>")——原窗口保留,另外新增一个新页面;3.Response.Write("<script>window....

2014-01-27 20:33:06 806

响应在此上下文中不可用

行 233: public bool Alert(string message)行 234: {行 235: Response.Write("<script>alert('"+message+"');</script>");行 236: return true;行 237: ...

2014-01-21 15:59:46 803 1

必须声明标量变量错误

SqlParameter[] paras = new SqlParameter[] { new SqlParameter("@LogNo", logNo.Text), new SqlParameter("@LogDate", logDate.Text), new SqlParameter(...

2014-01-21 11:40:07 1178

ASP.Net中引用自己写的类,出现“缺少程序集引用错误”

BaseClass.cs类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace G...

2014-01-17 20:39:14 615

原创 Mac OS在线升级以及Xcode升级

 升级苹果系统:打开AppStore,在搜索栏内输入Mac OS 搜索,在结果中看到有类似如下图标的就是Mac系统,点击下载就可以了 下载之后,双击运行程序。或者:打开AppStore,到热门免费里找 OS X。。。  升级Xcode:(1)进入苹果官网,切换到Mac下http://itunes.apple.com/us/app/xcode/id497799...

2013-12-24 14:02:48 2366

instancetype id

Objective-C is a rapidly evolving language, in a way that you just don't see in established programming languages. ARC, object literals, subscripting, blocks: in the span of just three years, so much...

2013-12-16 12:27:42 213

原创 @ at

Interface & Implementation@interface and @implementation are the first things you learn about when you start Objective-C:@interface...@end@implementation...@endWhat you don't learn ...

2013-11-21 13:54:27 163

原创 NSPredicate

NSPredicate is a Foundation class that specifies how data should be fetched or filtered. Its query language, which is like a cross between a SQL WHERE clause and a regular expression, provides an e...

2013-11-21 10:27:03 80

原创 NSFile​Manager

NSFileManager is Foundation's high-level API for working with file systems. It abstracts Unix and Finder internals, providing a convenient way to create, read, move, copy, and delete files & dir...

2013-11-21 09:30:35 92

查看数据库中表和列名数据类型

 可以从数据库中的系统表 sysobjects 得到想要的数据表信息,具体SQL语句如下: 查看数据库中表名: select name from sysobjects where type = 'U';由于系统表sysobjects保存的都是数据库对象,其中type表示各种对象的类型,具体包括:U = 用户表S = 系统表C = CHECK 约束D = ...

2013-09-25 17:11:38 1289

点击Run按钮后Stop按钮变灰

当把应用程序从模拟器删除(长按AppIcon,图标晃动,出现叉号,点击叉号。点击主屏幕按钮就不晃动了)之后,再次运行应用程序后,Stop按钮就变灰色,应用程序停止运行,只有当点击模拟器上的图标才能继续。这是因为点击了Clean,删除后直接运行就不会出现这个问题一旦Clean,那么重启模拟器就好了 ...

2013-09-24 17:31:08 401

原创 屏幕是横向的时候,NavigationBar总是在下边?

这是由于旋转时没有定位屏幕的位置,我们可以写一个旋转时的方法:-(void)rotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ switch(toInterfaceOrientation) { case UIInterfaceOrientation...

2013-08-20 10:32:35 135

原创 Why can't I save data to my application's bundle when running on the device?

Q:  My application saves data to the application's bundle, which works fine in the iPhone Simulator. However, when I run on a device, my data cannot be saved. What's going on?A: The different behavio...

2013-08-06 21:19:36 105

原创 Xcode 4.1~4.6 + iOS 5、iOS 6免证书(iDP)开发+真机调试+生成IPA全攻略

开发环境使用的是目前为止最新的稳定版软件:Mac OS X Lion 10.7 + Xcode 4.1目前Xcode 4.2 Preview版也已经发布,据说其修改方法跟4.1非常类似,只改动了一行代码,请参看参考文章的第二篇。本文仍以4.1版本为例。更新:现在Xcode 4.2正式版和iOS 5均已发布,下面补充上4.2的修改方法。(2011-10-24)各步骤会标明版本,比...

2013-07-30 11:33:07 87

原创 Which SQLite administration console do you recommend?

I've been on a search for a really good Sqlite Admin tool since I started iPhone programming a year ago. I've been mainly using the Firefox Plugin 80-90% or the time and Sqlite Administrator the r...

2013-07-21 19:30:31 81

原创 IBOutlet和IBAction的作用

If you go into the UIKit_Framework and look at the NSNibDeclarations.h header file, you’ll see that they’re defined like this: macros(宏)#define IBAction void#define IBOutlet#define IBOutletC...

2013-05-22 16:04:09 353

原创 revalidate()和validate()的区别

revalidate()方法[color=red]并不是马上改变组件大小[/color],而是标记该组件需要改变大小,这样就避免了多个组件都要改变大小时带来的重复计算,在javax.swing.JComponent中定义的。 validate()方法一旦被调用就立刻改变该容器内所有组件的大小在java.awt.Container中定义的。...

2013-04-18 16:06:07 2519

原创 关闭文件前询问是否关闭

首先要设置默认关闭操作为:什么也不做setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);然后添加Window监听this.addWindowListener(new WindowListener(){ public void windowClosing(WindowEvent we) { ...

2013-04-07 20:49:01 209

原创 C以及Java中可变参数列表函数定义方法

一、C语言中可变参数列表函数写法:1.导入头文件: #include<stdarg.h>2.声明一个列表宏:va_list arg;3. 用宏va_start将该变量初始化为一个参数列表。作用是将调用时传递的参数列表复制到va_list变量中,并指明开始的参数。va_start()有两个参数:(va_list列表变量,紧挨着省略号前的参数)4.va_arg(va_list列表变量,参...

2013-04-02 15:20:58 164

原创 java打包并生成可执行文件步骤

java打包以及生成可执行文件的步骤

2013-04-02 15:18:04 157

空空如也

空空如也

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

TA关注的人

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