上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: iOS从4.0之后支持后台播放声音了。下面是实现声音文件播放,并且用户关闭屏幕之后仍然能够播放声音文件。具体的实现方法如下: 在plist文件中加入下面的字段: 声明内容如下: Info.plist中添加UIBackgroundModes键值,它包含一个或多个string的值,包括 a... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(90) 评论(0) 推荐(0)
摘要: UIAlertView *myAlert = [[UIAlertView alloc]initWithTitle:@"显示时间" message:tmpStr delegate:self cancelButtonTitle:@"取消" otherButtonTitles:nil]; //Al... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(99) 评论(0) 推荐(0)
摘要: ////////////////////////////获取当前选的 NSInteger selectedRow=[myPickerView selectedRowInComponent:0]; ////////////////////////////////显示 -(NSInte... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(81) 评论(0) 推荐(0)
摘要: NSString *audioPath =[[NSBundle mainBundle]pathForResource:@"aaa" ofType:@"m4a"]; NSURL *url = [NSURL fileURLWithPath:audioPath]; NSError *erro... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(68) 评论(0) 推荐(0)
摘要: viewWillAppear: Called when the view is about to made visible. Default does nothing视图即将可见时调用。默认情况下不执行任何操作viewDidAppear: Called when the view has been... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(175) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; std::string tmp; std::ifstream infile("d:/aa.txt"); if ( !infile ) return; while (getline(in... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(114) 评论(0) 推荐(0)
摘要: #include "stdio.h"#include "windows.h"#include using namespace std;unsigned long sum = 0;////////////////////////////////////////////////////////////... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(421) 评论(0) 推荐(0)
摘要: using System;using System.Runtime.InteropServices; namespace zzzili{ class Test{ [DllImport("dllTest.dll")] public static extern in... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(80) 评论(0) 推荐(0)
摘要: #include#include#include"mysql.h"#pragma comment(lib,"libmysql.lib") void main(){ char*user="root",*pwd="admin",*dbname="test"; MYSQL mysql; MYSQL_R... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(155) 评论(0) 推荐(0)
摘要: 1.隐藏分割条 和 禁止拖动分割条 class CMySplitterWnd : public CSplitterWnd{public: int m_cx; int m_cy; void HideSplitter(); void ShowSplitter();public: CMySpli... 阅读全文
posted @ 2012-12-06 15:29 废弃账号 阅读(124) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页