Tag: xamarin.ios

iPhone:UIImageView淡入 – 如何?

我有一个UIImageView ,我想淡入。 有没有办法让一个底层的UIViewController ? 我已经翻译了最简单的答案,虽然他们都工作,为MonoTouch用户的C# .NET : public override void ViewDidAppear (bool animated) { base.ViewDidAppear (animated); UIView.BeginAnimations ("fade in"); UIView.SetAnimationDuration (1); imageView.Alpha = 1; UIView.CommitAnimations (); }

我可以在UIScrollView中使用UIRefreshControl吗?

我有约5个UIScrollView已经在我的应用程序,所有加载多个.xib文件。 我们现在想要使用UIRefreshControl 。 它们被构build为与UITableViewControllers一起使用(每个UIRefreshControl类的引用)。 我不想重新做5个UIScrollView工作。 我已经尝试在我的UIScrollView使用UIRefreshControl ,除了一些事情之外,它的工作方式和预期一样。 在刷新图像变成加载程序之后, UIScrollView向下跳跃约10个像素,这在我非常小心地非常缓慢地拖动UIScrollview时候才会发生。 当我向下滚动并启动重新加载,然后放开UIScrollView , UIScrollView停留在我放开的位置。 完成重新加载后, UIScrollView跳转到顶部,没有animation。 这是我的代码: -(void)viewDidLoad { UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged]; [myScrollView addSubview:refreshControl]; } -(void)handleRefresh:(UIRefreshControl *)refresh { // Reload my data [refresh endRefreshing]; } 有什么办法可以节省一大堆时间,并在UIScrollView使用UIRefreshControl ? 谢谢!!!

Application Loader报告缺less代码签名证书

I am developing my App in xamarin studio. I want the solution for xamarin Ios app not on xcode. I produce screenshots about my issue.please give me the right solution. 我正在创build分发configuration文件,如下所示 And finally Signing Identity is in Developer(Automatic),everything will be fine and app deploying on device but when uploading to the application loader i am […]

Xamarin iOS故事板本地化

我正在开发与Visual Studio中的xamarin iOS应用程序。 我试图添加本地化到我的Main.storyboard文件和默认的LaunchScreen.xib文件,但我不能使它的工作。 我已经按照这里的文档,我也执行了示例应用程序(这是工作正常)。 我复制了项目的结构,并且检查了很多次,但是我无法看到我的string在故事板或xib文件(LaunchScreen.xib)中本地化。 这是我的Info.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDisplayName</key> <string>MyApp</string> <key>CFBundleIdentifier</key> <string>it.company.myapp</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1.0</string> <key>LSRequiresIPhoneOS</key> <true/> <key>MinimumOSVersion</key> <string>9.0</string> <key>UIDeviceFamily</key> <array> <integer>1</integer> <integer>2</integer> </array> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UIMainStoryboardFile</key> <string>Main</string> <key>UIMainStoryboardFile~ipad</key> <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> <key>UISupportedInterfaceOrientations~ipad</key> <array> […]

在应用程序和今天的小部件之间共享图像

我可以在我的主iOS应用程序和我今天的扩展部件之间共享资源(编译到应用程序中的图像)吗? 说我创build一个新的应用程序。 然后将一个今天的扩展项目添加到解决scheme。 然后我创build一个UIImageView。 我想从共享的图像池中引用图像,而不是每个图像都有2个,一个添加到主应用程序,另一个添加到窗口小部件应用程序。 imageView.Image = UIImage.FromBundle("IMG_3799.JPG"); IMG_3799.JPG位于该项目的“参考”文件夹中的主应用程序内部。 我更喜欢相同的图像资源被小部件引用。 那可能吗? 目前,我正在制作IMG_3799.JPG的第二个副本,并将其放入小部件中。

Xamarin窗体 – 如何创build自定义渲染给TableSection默认的iOS页脚?

我想将默认的iOS脚本添加到Xamarin Forms中tableview中的table部分。 我怎么能这样做? 我假设一个客户渲染器,但我只是阅读,这可以做Tableview? 为了显示一个例子,当我在静态单元格中input页脚文本时,以下图像来自Xcode storyboard。

在UIScrollView中使用Cirrious.FluentLayouts.Touch进行Autolayouts

我必须在scrollView中使用autolayout来做一个ViewController,但是这里有一些问题: public SomeVC() : UIViewController { _mainScrollView = new UIScrollView { ShowsHorizontalScrollIndicator = false, ShowsVerticalScrollIndicator = true, BackgroundColor = UIColor.Clear, ScrollEnabled = true, AutoresizingMask = UIViewAutoresizing.FlexibleHeight, TranslatesAutoresizingMaskIntoConstraints = true }; _userDataTableView = new UITableView(CGRect.Empty, UITableViewStyle.Grouped); _userDataTableView.LayoutIfNeeded(); _saveButton = new UIButton(); _menuTableView = new UITableView(CGRect.Empty, UITableViewStyle.Grouped); _menuTableView.LayoutIfNeeded(); _logoutButton = new UIButton(); } public override void LoadView() […]

我正在使用“DrawLinearGradient”函数绘制渐变线。 但是我使用的两种颜色并不是一致的

我正在使用“DrawLinearGradient”函数绘制渐变线。 但是我使用的两种颜色并不是一致的。 CGColorSpace colorSpace = CGColorSpace.CreateDeviceRGB(); CGColor[] colors = {UIColor.Red.CGColor,UIColor.Green.CGColor}; float[] locations = {0.0f,0.5f,0.5f,1.0f}; CGGradient gradient = new CGGradient(colorSpace,colors,locations); ColorMessage.FontSize = width; context.SetLineWidth(width); context.SaveState(); context.Clip(); context.DrawLinearGradient(gradient,penVertices[0],penVertices[count-1],0); context.StrokePath(); gradient.Dispose(); colorSpace.Dispose(); context.RestoreState();

MonoTouch.Dialog崩溃

我有一个小testing应用程序,只是在3页之间循环。 这里是AppDelegate: public override bool FinishedLaunching (UIApplication app, NSDictionary options) { _session = new Session(); _session.NextScreen += (screenIndex) => { window.RootViewController = _viewControllers[screenIndex]; }; _viewControllers.Add(new Screen0(_session)); _viewControllers.Add(new Screen1(_session)); _viewControllers.Add(new Screen2(_session)); // create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds); // If you have defined a view, add it […]

是否有可能连接Xamarin IOS应用程序与迅速watchOS扩展

我已经在swift下开发了一个WatchOSExtension,可以将它连接到一个新开发的xamarin ios项目吗?