摘要:
UINavigationController *nc = [self.splitViewController.viewControllers lastObject]; self.detailViewController = (SplitViewDetailViewController *)[nc topViewController];有一个splitViewController属性,其viewControllers为一个含两个ViewController的数组,0-left,1-right in landscape看文档:https://developer.apple.com/librar.. 阅读全文
摘要:
创建Popover的几种方法:1、通过Segue:设置Segue的Style是Popover-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if([segue isKindOfClass:[UIStoryboardPopoverSegue class]]) { self.pop = ((UIStoryboardPopoverSegue *)segue).popoverController; self.pop.popoverContentSize = CGSizeM... 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayou 阅读全文
摘要:
解决外部符号错误:_main,_WinMain@16,__beginthreadex在创建MFC项目时, 不使用MFC AppWizard向导, 就会在编译时产生很多连接错误, 如error LNK2001错误, 典型的错误提示有: libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16msvcrtd.lib(crtexew.obj) : error 阅读全文