在 UIResponder中存在这么一套方法-
(void)motionBegan:(UIEventSubtype)motion
withEvent:(UIEvent*)event__OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);-
(void)moti...
分类:
移动开发 时间:
2014-05-08 19:14:41
阅读次数:
401
public void RandSort(int[] _num) { Random rd = new
Random(); int temp = 0, tempNum = 0; for (int i = 0; i < _...
分类:
其他好文 时间:
2014-05-08 18:55:19
阅读次数:
257
由于项目中还没有更好的多点触控思路,所以需要将多点触控暂时关闭;关闭多点触控的代码只有一行:private void
image_ManipulationStarting(object sender, ManipulationStartingEventArgs
e){e.Mode = Manipul...
分类:
其他好文 时间:
2014-05-08 14:34:30
阅读次数:
251
-(void) bringSublayerToFront:(CALayer*)layer{[layer
removeFromSuperlayer];[self insertSublayer:layer atIndex:[self.sublayers
count]-1];}-(void) sendSu...
分类:
移动开发 时间:
2014-05-08 14:01:24
阅读次数:
386
private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog fileDialog1 =
new OpenFileDialog....
分类:
其他好文 时间:
2014-05-08 13:27:26
阅读次数:
229
java.lang.String.indexOf(char
ch)方法返回字符ch在指定字符串中第一次出现的下标索引位置如果字符ch在指定的字符串中找不到,则返回-1示例:import
java.lang.*;public class StringDemo { public static void....
分类:
编程语言 时间:
2014-05-08 13:02:04
阅读次数:
423
static void shellsort(int a[], int n) {
for (int gap = n / 2; gap >= 1; gap /= 2) {
for (int i = gap; i < n; i++) {
if (a[i] < a[i - gap]) {
int temp = a[i];
int k = i - gap;
w...
分类:
其他好文 时间:
2014-05-07 16:31:06
阅读次数:
272
public class Sort {
static void insertSort(int a[], int n) {
for (int i = 1; i < n; i++) {
if (a[i] = 0 && a[k] > temp) {
...
分类:
其他好文 时间:
2014-05-07 16:15:39
阅读次数:
225
#include
#include
using namespace std;
class Point //定义坐标点类
{
public:
Point():x(0),y(0) {};
Point(double x0, double y0):x(x0),y(y0){};
void PrintPoint(); //输出点的信息
double getx()
{
...
分类:
其他好文 时间:
2014-05-07 16:14:20
阅读次数:
267
以微博分享为例:
1.public void onClickShare(View view) {
2.
3. Intent intent=new Intent(Intent.ACTION_SEND);
4. intent.setType("image/*");
5. intent.putExtra(Inten...
分类:
移动开发 时间:
2014-05-07 15:59:21
阅读次数:
396