我将现有的iOS 6应用程序移植到新的iOS 7中.但是每当MKMapView实例出现在屏幕上时,我的导航栏就会失去其色彩.
重现步骤:
打开Xcode;
创建一个新的Master-Detail应用程序;
添加下一行作为AppDelegate.m didFinishLaunchingWithOptions方法的第一行:
[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]]
将下一行添加到MasterViewController.m文件中:
#import <MapKit/MapKit.h>
最后,将下一行添加到MasterViewController.m cellForRowAtIndexPath方法:
MKMapView *view = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
[cell.contentView addSubview:view];
构建并运行
这些是结果:

难道我做错了什么?我该怎么做才能解决这个问题?
我应该开始使用Google Maps API吗?
通过在其中包含一个包含ViewPager的活动,是否可以通过单击触摸设置ViewPager全屏(开/假)?

如果没有,我将在全屏幕中启动一个包含同一ViewPager的另一个实例的新活动,并手动sincronize两个ViewPagers CurrentItem,这将需要更多的内存和更多的对象来实例化.
实现此功能的最佳方法是什么?
谷歌搜索了一段时间后,我找不到在我当前的Monotouch应用程序中使用的库.
我想知道是否有一些Monotouch库能够执行如下功能:
使用Objective-C进行开发时,我习惯使用众所周知的SDWebImage库.
如果可能的话,我想使用一个部分支持Xamarin Cross-Platform的库,以便将它用于我当前应用程序的Mono For Android版本.
我是使用Xamarin.Android进行Android开发的新手,我想了解如何解决下一个问题.
有时,从后台恢复我的Android应用程序后,我面临的下一个错误:
Unable to find the default constructor on type MainMenuFragment.在MainMenuFragment使用应用程序NavigationDrawerActivity允许用户在应用程序中不同的片段之间切换.
为了解决这个问题,我MainMenuFragment在下一个链接中添加了一个默认构造函数:
public class MainMenuFragment : DialogFragment
{
readonly NavigationDrawerActivity navigationDrawer;
#region Constructors
public MainMenuFragment () {} // Default constructor...
public MainMenuFragment (NavigationDrawerActivity navigationDrawer, IMenuType launchMenu = null)
{
if (navigationDrawer == null)
throw new ArgumentNullException ("navigationDrawer");
this.navigationDrawer = navigationDrawer;
...
Fragment UpdateTopFragmentForCurrentMenu (Fragment newMenuRootFragment = null)
{
Fragment currentMenuRootFragment = navigationDrawer.CurrentFragment; // issued line.
Run Code Online (Sandbox Code Playgroud)但是现在在将来的某个时候,MainMenuFragment使用其默认构造函数初始化,并且在第一次尝试访问其navigationDrawer时,它会抛出System.NullReferenceException:
System.NullReferenceException: …Run Code Online (Sandbox Code Playgroud) android ×1
asynchronous ×1
caching ×1
fullscreen ×1
image ×1
ios7 ×1
mkmapview ×1
tap ×1
xamarin.ios ×1