How do I launch multiple instances of Xamarin Studio on the Mac (Visual Studio for Mac)? [duplicate]

Just want a tool? If you just want to download something that does this for you, there is also the MS Solution Launcher or the older Xamarin Studio Launcher v3. Presumably, it does something similar to the script below but comes in a nice pre-built app with a distinct icon you just copy to your … Read more

Anyone have experience with architecture for cross platform WP7 Android iOS mobile development (monotouch, monodroid, C#)

You might want to look into the MonoCross project which is designed to help you reuse C# code with multiple presentation layers: http://code.google.com/p/monocross/ The authors of MonoCross (ITR Mobility) have created multiple mobile cross platform solutions for a variety of customers and have written two books on the subject one is “iPad in the Enterprise” … Read more

How to prevent iOS crash reporters from crashing MonoTouch apps?

Put this in AppDelegate.cs: [DllImport (“libc”)] private static extern int sigaction (Signal sig, IntPtr act, IntPtr oact); enum Signal { SIGBUS = 10, SIGSEGV = 11 } static void EnableCrashReporting () { IntPtr sigbus = Marshal.AllocHGlobal (512); IntPtr sigsegv = Marshal.AllocHGlobal (512); // Store Mono SIGSEGV and SIGBUS handlers sigaction (Signal.SIGBUS, IntPtr.Zero, sigbus); sigaction (Signal.SIGSEGV, … Read more

Publishing to TestFlight, new testers, do I really need to rebuild/download my provisioning profile?

No need to rebuild the .ipa Upload the .ipa Send invitations to testers Add their devices to provisioning profile Download the approved profile Go to TestFlight builds >> Permissions >> Upload profile … Click Send Email/Update You’re done – the new user get’s the link to download the app. Hope that helps.

HW kbd Failed to set (null) as keyboard focus ios

I’ve just encountered this exception running a Xamarin app on the simulator. It started occurring after I toggled the software keyboard off while debugging the app. Given the exception mentioning the keyboard I think that’s what caused it. Uninstalling the app from the emulator, cleaning and rebuilding fixed the issue for me. Unsure if this … Read more

Can I use a UIRefreshControl in a UIScrollView?

I got a UIRefreshControl to work with a UIScrollView: – (void)viewDidLoad { UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 500, 500)]; scrollView.userInteractionEnabled = TRUE; scrollView.scrollEnabled = TRUE; scrollView.backgroundColor = [UIColor whiteColor]; scrollView.contentSize = CGSizeMake(500, 1000); UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(testRefresh:) forControlEvents:UIControlEventValueChanged]; [scrollView addSubview:refreshControl]; [self.view addSubview:scrollView]; } – (void)testRefresh:(UIRefreshControl *)refreshControl { refreshControl.attributedTitle … Read more

How to force a UIViewController to Portrait orientation in iOS 6

If you want all of our navigation controllers to respect the top view controller you can use a category so you don’t have to go through and change a bunch of class names. @implementation UINavigationController (Rotation_IOS6) -(BOOL)shouldAutorotate { return [[self.viewControllers lastObject] shouldAutorotate]; } -(NSUInteger)supportedInterfaceOrientations { return [[self.viewControllers lastObject] supportedInterfaceOrientations]; } – (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return [[self.viewControllers … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)