摘要:
QListWidget *list1=ui->listWidget_Off1; QListWidget *list2=ui->listWidget_Off2; list1->setIconSize(QSize(100, 100)); list1->s... 阅读全文
摘要:
ui->tabWidget->setGeometry(2,3,473,857); //设置大小 ui->tabWidget->setTabPosition(QTabWidget::South); //设置标签位置 ui->tabWidget->setDocumentMode(true); ... 阅读全文
摘要:
//响应键盘按键(在noteRichEdit框中按回车键换行)BOOL CAddMarkDlg::PreTranslateMessage(MSG* pMsg){if(pMsg->message == WM_KEYDOWN){if(pMsg->wParam == VK_RETURN){m_markE... 阅读全文
摘要:
CToolBar m_ToolBar; CImageList m_imglstToolbar ; CStatusBar m_StatusBar ; /* 功能:初始化工具栏*/void CDlgNewMail::InitToolbar(){ m_ToolBa... 阅读全文
摘要:
一.基本知识目前主流的智能手机大部分都支持GoogleMap地图程序,而手机上的地图程序确实能给我们的出行带来很大的方便。在iPhone中利用MapKit框架可以很方便的显示Google地图,并且可以在地图上添加标注。二.具体介绍1.MKMapView的显示(1)创建MKMapViewCGRect... 阅读全文
摘要:
//////////响应 #pragma mark - UIActionSheetDelegate - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonInde... 阅读全文
摘要:
///获取touch位置 CGPoint touchPoint=[touch locationInView:self.view]; NSString *str=[NSString stringWithFormat:@"%f",touchPoint.x]; myLabel.text =s... 阅读全文
摘要:
NSTimer timer =[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFired:) userInfo:nil repeats:YES];-(void)timerFired:(NST... 阅读全文
摘要:
CGRect webFrame = [[UIScreen mainScreen] applicationFrame]; webFrame.origin.y += kTopMargin + 5.0; // leave from the URL input field and its la... 阅读全文
摘要:
1,document 中的路径 最麻烦的一种: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsD... 阅读全文