Re: [MonoTouch] Random crashes using NSUrlProtocol
Hi, On Thu, Sep 27, 2012 at 1:44 AM, Gusman geni...@gmail.com wrote: Hi Rolf. I have found the bug! And here is my adventure on what it is and how to fix it. I'm using AdMob library with Alex Desoto implementation, and the protocol crashes when theAdMob library does it's requests (because that i was getting random crashes also). Double checked the AdMob library is for iOS 6 and recompiled again the .net dll with no luck. After some googling, found that AdMob uses internally a ProtocolHandler to make it's requests, which gave me a little clue. To nail down the problem, first I removed the protocol and everything started to work and no random crash. So I modified my protocol to return always false to CanInitWithRequest, in theory the query must be propagated until a protocol handles it, so if it was a problem because my protocol was handling it's request it will work. To my surprise it crashed too. After that I removed the AdMob library, created a mini protocol with only CanInitWithRequest and registered my real protocol and this new mini protocol to see if calls where propagated between various protocols, and it did but a WebBrowser in my app stopped working, so a bit of light was seen. So, struggling my brain and a bit desperated went to the assembly inspector to see how was implemented the class and found a veri nice thing. CanInitWithRequest must be an static method but is declared as a virtual instance method. Very nice XD. When I wrote the protocol handler, monodevelop detected a CanInitWithRequest, so it said the new keyword must be used. But here is the trick, no static CanInitWithRequest method exists and don't know why but that is what was breaking everything. I've removed the new keyword and the browser worked again. And finally I have filtered my protocol to do not handle the admob request and all is working finally. So that's an example on how three letters can destroy a program XD. Hope this helps to anyone having the same problems. A question, should I fill this as a bug or this is an implementation decission?? CanInitWithRequest is an instance method, not a static method, so this is just how it's implemented. Technically either 'new' or 'override' should work, as long as the method isn't static (but with 'new' you'll need the Export attribute, with 'override' you won't since the base method already has an Export attribute). Rolf And thanks for the help :) -- View this message in context: http://monotouch.2284126.n4.nabble.com/Random-crashes-using-NSUrlProtocol-tp4657239p4657262.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Error in creating GeoLocation since MT 6.0
Hi, See this: https://bugzilla.xamarin.com/show_bug.cgi?id=7331 Rolf On Thu, Sep 27, 2012 at 3:56 AM, technohead dj_technoh...@yahoo.com wrote: Hi, I've just recently upgraded to MT 6.0 and tried recompiling some pre-existing code that was working in MT 5.4. I'm getting the runtime error: Method not found: MonoTouch.CoreLocation.CLLocationManager.add_AuthorizationChanged'. when trying to create an instance of Geolocator using the following code: Geolocator geolocator = new Geolocator { DesiredAccuracy = 10 }; I have not installed XCode 4.5 so am still compiling against iOS SDK 5.1. I am currently avoiding installing 4.5 because I still want to be able to compile apps for arm V6. Is this a bug or does this require an upgrade of the iOS SDK? Dennis -- View this message in context: http://monotouch.2284126.n4.nabble.com/Error-in-creating-GeoLocation-since-MT-6-0-tp4657263.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Error in creating GeoLocation since MT 6.0
basically it says: (as of September 20th) The currently available binaries are now compiled for MonoTouch 6.http://xamarin.com/mobileapi if you're using the mobileAPI (Xamarin.Geolocation) maybe try downloading the latest from that link? On Thu, Sep 27, 2012 at 5:21 PM, Rolf Bjarne Kvinge r...@xamarin.comwrote: Hi, See this: https://bugzilla.xamarin.com/show_bug.cgi?id=7331 Rolf On Thu, Sep 27, 2012 at 3:56 AM, technohead dj_technoh...@yahoo.comwrote: Hi, I've just recently upgraded to MT 6.0 and tried recompiling some pre-existing code that was working in MT 5.4. I'm getting the runtime error: Method not found: MonoTouch.CoreLocation.CLLocationManager.add_AuthorizationChanged'. when trying to create an instance of Geolocator using the following code: Geolocator geolocator = new Geolocator { DesiredAccuracy = 10 }; I have not installed XCode 4.5 so am still compiling against iOS SDK 5.1. I am currently avoiding installing 4.5 because I still want to be able to compile apps for arm V6. Is this a bug or does this require an upgrade of the iOS SDK? Dennis -- View this message in context: http://monotouch.2284126.n4.nabble.com/Error-in-creating-GeoLocation-since-MT-6-0-tp4657263.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Fun with MFMailComposeViewController
Thanks Nic for the pointer, I had not got to the points of making my stuff pretty yet, so has not affected me yet, but I am sure it is one that I would have hit in a couple of weeks time. ATB Alex On 27 Sep 2012, at 08:22, Nic Wise n...@fastchicken.co.nz wrote: If you are using MFMailComposeViewController, you may want to look at this https://bugzilla.xamarin.com/show_bug.cgi?id=7443 Possibly a bug with 6.0.0 / 6.0.1 MT, if you use it in a VERY specific way when using UIAppearance in a VERY specific way :) Odds are, you will not hit this, but if you do, it's there :) On Thu, Sep 27, 2012 at 6:12 AM, Alex White alexwhit...@gmail.com wrote: Hi Chris, what works for me is the following two bits of code pdfFileName = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), docs.pdf); NSData data = NSData.FromFile (pdfFileName); MFMailComposeViewController mail = new MFMailComposeViewController (); mail.SetSubject (docs); mail.SetMessageBody (, true); mail.Finished += HandleMailFinished; mail.AddAttachmentData (data, text/x-pdf, docs.pdf); this.NavigationController.PresentModalViewController (mail, true); void HandleMailFinished (object sender, MFComposeResultEventArgs e) { if (e.Result == MFMailComposeResult.Sent) { UIAlertView alert = new UIAlertView (sdklsdksdlkskdsd, Mail Sent, null, Ok, null); alert.Show (); } else if (e.Result == MFMailComposeResult.Cancelled) { } else if (e.Result == MFMailComposeResult.Saved) { } e.Controller.DismissModalViewControllerAnimated (true); } you can bung some code in the cancelled result if you need to. ATB Alex On 26 Sep 2012, at 21:28, Chris_M kungfuchri...@yahoo.com wrote: My app has a UITabBarController. One of the tabs is to enable a user to send an email to my clients. I created a UIViewController for that tab bar item, and in its ViewDidLoad I have code that uses Reachability to determine if an internet connection is there, and if MFMailComposeViewController.CanSendMail, I invoke a MailComposeDelegate so the user can compose and send an email. This all works just fine. But I have two problems. First, if I cancel the email composition, and the compose email modal view goes away, the view is blank, and navigating away from this screen and back to it doesn't reset anything (not that I expected it to). So I need to figure out how to rest that mail functionality in the MFMailComposeResult.Cancelled block of code (right now it just disposes of the modal view controller in an animated fashion). Second, when I do send an email, I get a Mail Alert: Mail Sent alert as expected, but it stays on the screen and effectively locks the app until I force close it and launch it again. So obviously I'm missing a step in there somewhere. Presumably something I need to add to the MFMailComposeResult.Sent block of code. Maybe I need to set how many seconds the Mail Sent alert stays on the screen, or something like that? I couldn't find code examples online to help with this, but maybe I'm not looking for the right things. Anyway, any suggestions? --Chris -- View this message in context: http://monotouch.2284126.n4.nabble.com/Fun-with-MFMailComposeViewController-tp4657247.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Fun with MFMailComposeViewController
Nah, Sebastien was on the ball with an update, so it'll be in 6.0.2 :) On Thu, Sep 27, 2012 at 11:29 AM, Alex White alexwhit...@gmail.com wrote: Thanks Nic for the pointer, I had not got to the points of making my stuff pretty yet, so has not affected me yet, but I am sure it is one that I would have hit in a couple of weeks time. ATB Alex On 27 Sep 2012, at 08:22, Nic Wise n...@fastchicken.co.nz wrote: If you are using MFMailComposeViewController, you may want to look at this https://bugzilla.xamarin.com/show_bug.cgi?id=7443 Possibly a bug with 6.0.0 / 6.0.1 MT, if you use it in a VERY specific way when using UIAppearance in a VERY specific way :) Odds are, you will not hit this, but if you do, it's there :) On Thu, Sep 27, 2012 at 6:12 AM, Alex White alexwhit...@gmail.com wrote: Hi Chris, what works for me is the following two bits of code pdfFileName = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), docs.pdf); NSData data = NSData.FromFile (pdfFileName); MFMailComposeViewController mail = new MFMailComposeViewController (); mail.SetSubject (docs); mail.SetMessageBody (, true); mail.Finished += HandleMailFinished; mail.AddAttachmentData (data, text/x-pdf, docs.pdf); this.NavigationController.PresentModalViewController (mail, true); void HandleMailFinished (object sender, MFComposeResultEventArgs e) { if (e.Result == MFMailComposeResult.Sent) { UIAlertView alert = new UIAlertView (sdklsdksdlkskdsd, Mail Sent, null, Ok, null); alert.Show (); } else if (e.Result == MFMailComposeResult.Cancelled) { } else if (e.Result == MFMailComposeResult.Saved) { } e.Controller.DismissModalViewControllerAnimated (true); } you can bung some code in the cancelled result if you need to. ATB Alex On 26 Sep 2012, at 21:28, Chris_M kungfuchri...@yahoo.com wrote: My app has a UITabBarController. One of the tabs is to enable a user to send an email to my clients. I created a UIViewController for that tab bar item, and in its ViewDidLoad I have code that uses Reachability to determine if an internet connection is there, and if MFMailComposeViewController.CanSendMail, I invoke a MailComposeDelegate so the user can compose and send an email. This all works just fine. But I have two problems. First, if I cancel the email composition, and the compose email modal view goes away, the view is blank, and navigating away from this screen and back to it doesn't reset anything (not that I expected it to). So I need to figure out how to rest that mail functionality in the MFMailComposeResult.Cancelled block of code (right now it just disposes of the modal view controller in an animated fashion). Second, when I do send an email, I get a Mail Alert: Mail Sent alert as expected, but it stays on the screen and effectively locks the app until I force close it and launch it again. So obviously I'm missing a step in there somewhere. Presumably something I need to add to the MFMailComposeResult.Sent block of code. Maybe I need to set how many seconds the Mail Sent alert stays on the screen, or something like that? I couldn't find code examples online to help with this, but maybe I'm not looking for the right things. Anyway, any suggestions? --Chris -- View this message in context: http://monotouch.2284126.n4.nabble.com/Fun-with-MFMailComposeViewController-tp4657247.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com
Re: [MonoTouch] having nightmares with updates to and from xcode
Hi Jeff, thanks for the reply, This problems has been occurring on and off for months, but in the last week 100% of the Xcode updates are no making their way into MonoDevelop it has forced me to recode my project to be xib free, it does not help that this happened right in the middle of a load of work with beta testers, but an xib free app should be better in the long run. I have had so many crashes that always report, some in MonoDevelop and some in Xcode, I have also noted that there are times where the sync'ing back to MonoDevelop has crashed both MonoDevelop and XCode at the same time, both needing to be forced to quit which does not make sense to me as the sync'ing from what I can see is not done via processes but file watching if you see my logic. I will in future use Xcode to only prototype screen layouts then creating the views programatically. Not only do I have to create them from scratch but I cannot use the original names as this throws up so many errors that I cannot fix, I have so many views now with 2's or 3's on the end of them. Also a side issue is renaming of objects in Xcode I have never got this to work properly and be reflected back in MonoDevelop but that is another issue, but having many objects that have the wrong name is not good. Where are the timeouts?, I will have a play with them if they are available to me. I will do some further testing before I go down the route of logging a bug. Thanks Alex On 26 Sep 2012, at 22:54, Jeff Stedfast j...@xamarin.com wrote: Hi Alex, You should not be having to recreate them from scratch. There is clearly a bug in MonoDevelop's Xcode syncing, somewhere. Is it possible for you to file a bug about this on http://bugzilla.xamarin.com and attach your XcodeSyncdate.log file (you can attach it and mark it private). This log file might provide some clues... I suspect it might be that the sync is timing out (I may need to up the timeout for projects as large as yours?), but I won't know for sure w/o seeing the log file. Thanks, Jeff On Sun, Sep 23, 2012 at 3:25 AM, Alex White alexwhit...@gmail.com wrote: Hi All, I have a project that has 80+ xib files, there seems to be significant problems with updates mainly from Xcode back to MonoDevelop, I have tried saving the xib file in Xcode, I have tried closing the xib in Xcode, I have tried closing Xcode completely, rebooting the computer, Xcode shows the changes to the xib file. but mono touch does not see the changes, e.g. add a new item to the xib file, move something in the xib file, delete something in the xib file, mono touch just does not see the changes. This has been a constant battle I am running all the latest versions of everything but this has happened with all the version in the last 6 months, sometimes it works sometimes it does not. In my latest issue all I am trying to do is set a tableview to grouped, I cannot do this in Xcode, I cannot do this in code, I have removed the xib from the tableviewcontroller and tried to create the tableview programatically this does not work as it is still referring to the xib file even though I hav e removed the reference to it in the constructor. My project is littered with old and new xib files because of this type of issue where the only fix is to create a new file from scratch. It is a bit late for this project but I will never use Xcode again, I will create everything programatically in the future. Do I have to recreate all these files from scratch like I am doing this seems a bit over the top. ATB Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] rotations have stopped working on the devices but work in the simulator
Hi Yes that works, I have gone right through the plist.info file to see if there are any major differences between the new and old project and I cannot see anything. I think something bad has happened to my project as I was not able to debug on the device until I wrote the small demo project to test this problem now I can debug with both the new and the old project, very odd. I can't face creating a new project and copying all the stuff from the old one as I have already done this a couple of times and there is always something missed introducing new bugs. I don't know what to try next. ATB Alex On 26 Sep 2012, at 23:10, Rolf Bjarne Kvinge r...@xamarin.com wrote: Hi, On Wed, Sep 26, 2012 at 2:51 PM, Alex White alexwhit...@gmail.com wrote: Hi Rolf, thanks for the reply, I now have public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations (UIApplication application, UIWindow forWindow) { return UIInterfaceOrientationMask.All; } in the AppDelegate class I have public override bool ShouldAutorotate() { return true; } in my view controller, I also have at the in project settings all rotations selected for both the iPhone and the iPad. The simulator rotates perfectly but the iPad does not, all other apps rotate fine on the iPad. Can you make a new project from a template rotate on the iPad? Rolf I must be missing something else. thanks Alex On 26 Sep 2012, at 10:52, Rolf Bjarne Kvinge r...@xamarin.com wrote: Hi, You need to override GetSupportedInterfaceOrientations in your AppDelegate class. Rolf On Wed, Sep 26, 2012 at 7:13 AM, Alex White alexwhit...@gmail.com wrote: Hi Rolf, if I key the following lines into a view controller public override bool ShouldAutorotate() { return true; } public override UIInterfaceOrientationMask SupportedInterfaceOrientations() { return UIInterfaceOrientationMask.All; } If you cannot see the image below it says 'WizPr.rootBikeListiPad.SupportedInterfaceOrientations()' is marked as an override but no suitable method is found to override. I have read a number of conflicting documents about if I need to subclass the navigationcontroller or not, a good example of the IOS6 way of rotating would be really helpful. what is odd is even without all this code and the IOS5 equivilent code my views rotate in the simulator (the sim is v6.0). The reason I was drawn to this was I was converting from xib view controllers to non xib and for some reason the old rotation method don't work at all without the xib. ATB Alex Screen Shot 2012-09-26 at 06.06.50.png On 25 Sep 2012, at 22:11, Rolf Bjarne Kvinge r...@xamarin.com wrote: Hi, On Tue, Sep 25, 2012 at 1:06 PM, Alex White alexwhit...@gmail.com wrote: Hi all, My rotations have stopped working on the iPad they still work on in the simulator. I don't have the rotation lock on and other apps are rotating fine. I have used this blog to try and work out how to do things http://yusinto.blogspot.co.uk/2012/08/ios-6-auto-rotate-and-orientation.html but it has not helped and shows errors when SupportedInterfaceOrientations() Which errors? Rolf is used. So completely lost on how to proceed from here. ATB Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] having nightmares with updates to and from xcode
I am having the same issues having to remove all xibs and renaming class And reworking 70% of my project I was hoping to get to App Store in October now it will have to go thru QC again and shoot for December. Sent from my iPhone On Sep 27, 2012, at 7:24 AM, Alex White alexwhit...@gmail.commailto:alexwhit...@gmail.com wrote: Hi Jeff, thanks for the reply, This problems has been occurring on and off for months, but in the last week 100% of the Xcode updates are no making their way into MonoDevelop it has forced me to recode my project to be xib free, it does not help that this happened right in the middle of a load of work with beta testers, but an xib free app should be better in the long run. I have had so many crashes that always report, some in MonoDevelop and some in Xcode, I have also noted that there are times where the sync'ing back to MonoDevelop has crashed both MonoDevelop and XCode at the same time, both needing to be forced to quit which does not make sense to me as the sync'ing from what I can see is not done via processes but file watching if you see my logic. I will in future use Xcode to only prototype screen layouts then creating the views programatically. Not only do I have to create them from scratch but I cannot use the original names as this throws up so many errors that I cannot fix, I have so many views now with 2's or 3's on the end of them. Also a side issue is renaming of objects in Xcode I have never got this to work properly and be reflected back in MonoDevelop but that is another issue, but having many objects that have the wrong name is not good. Where are the timeouts?, I will have a play with them if they are available to me. I will do some further testing before I go down the route of logging a bug. Thanks Alex On 26 Sep 2012, at 22:54, Jeff Stedfast j...@xamarin.commailto:j...@xamarin.com wrote: Hi Alex, You should not be having to recreate them from scratch. There is clearly a bug in MonoDevelop's Xcode syncing, somewhere. Is it possible for you to file a bug about this on http://bugzilla.xamarin.comhttp://bugzilla.xamarin.com/ and attach your XcodeSyncdate.log file (you can attach it and mark it private). This log file might provide some clues... I suspect it might be that the sync is timing out (I may need to up the timeout for projects as large as yours?), but I won't know for sure w/o seeing the log file. Thanks, Jeff On Sun, Sep 23, 2012 at 3:25 AM, Alex White alexwhit...@gmail.commailto:alexwhit...@gmail.com wrote: Hi All, I have a project that has 80+ xib files, there seems to be significant problems with updates mainly from Xcode back to MonoDevelop, I have tried saving the xib file in Xcode, I have tried closing the xib in Xcode, I have tried closing Xcode completely, rebooting the computer, Xcode shows the changes to the xib file. but mono touch does not see the changes, e.g. add a new item to the xib file, move something in the xib file, delete something in the xib file, mono touch just does not see the changes. This has been a constant battle I am running all the latest versions of everything but this has happened with all the version in the last 6 months, sometimes it works sometimes it does not. In my latest issue all I am trying to do is set a tableview to grouped, I cannot do this in Xcode, I cannot do this in code, I have removed the xib from the tableviewcontroller and tried to create the tableview programatically this does not work as it is still referring to the xib file even though I hav e removed the reference to it in the constructor. My project is littered with old and new xib files because of this type of issue where the only fix is to create a new file from scratch. It is a bit late for this project but I will never use Xcode again, I will create everything programatically in the future. Do I have to recreate all these files from scratch like I am doing this seems a bit over the top. ATB Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.commailto:MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.commailto:MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] having nightmares with updates to and from xcode
Hi Mike, What worked for me was rem'ing out the designer.cs for the view controllers and modifying the constructor for the view controller to remove the reference to the xib files, this means you can put them back in if you need to. I found things compile much quicker without the xib files. ATB Alex On 27 Sep 2012, at 13:05, Mike Murdock mmurd...@allmeds.com wrote: I am having the same issues having to remove all xibs and renaming class And reworking 70% of my project I was hoping to get to App Store in October now it will have to go thru QC again and shoot for December. Sent from my iPhone On Sep 27, 2012, at 7:24 AM, Alex White alexwhit...@gmail.commailto:alexwhit...@gmail.com wrote: Hi Jeff, thanks for the reply, This problems has been occurring on and off for months, but in the last week 100% of the Xcode updates are no making their way into MonoDevelop it has forced me to recode my project to be xib free, it does not help that this happened right in the middle of a load of work with beta testers, but an xib free app should be better in the long run. I have had so many crashes that always report, some in MonoDevelop and some in Xcode, I have also noted that there are times where the sync'ing back to MonoDevelop has crashed both MonoDevelop and XCode at the same time, both needing to be forced to quit which does not make sense to me as the sync'ing from what I can see is not done via processes but file watching if you see my logic. I will in future use Xcode to only prototype screen layouts then creating the views programatically. Not only do I have to create them from scratch but I cannot use the original names as this throws up so many errors that I cannot fix, I have so many views now with 2's or 3's on the end of them. Also a side issue is renaming of objects in Xcode I have never got this to work properly and be reflected back in MonoDevelop but that is another issue, but having many objects that have the wrong name is not good. Where are the timeouts?, I will have a play with them if they are available to me. I will do some further testing before I go down the route of logging a bug. Thanks Alex On 26 Sep 2012, at 22:54, Jeff Stedfast j...@xamarin.commailto:j...@xamarin.com wrote: Hi Alex, You should not be having to recreate them from scratch. There is clearly a bug in MonoDevelop's Xcode syncing, somewhere. Is it possible for you to file a bug about this on http://bugzilla.xamarin.comhttp://bugzilla.xamarin.com/ and attach your XcodeSyncdate.log file (you can attach it and mark it private). This log file might provide some clues... I suspect it might be that the sync is timing out (I may need to up the timeout for projects as large as yours?), but I won't know for sure w/o seeing the log file. Thanks, Jeff On Sun, Sep 23, 2012 at 3:25 AM, Alex White alexwhit...@gmail.commailto:alexwhit...@gmail.com wrote: Hi All, I have a project that has 80+ xib files, there seems to be significant problems with updates mainly from Xcode back to MonoDevelop, I have tried saving the xib file in Xcode, I have tried closing the xib in Xcode, I have tried closing Xcode completely, rebooting the computer, Xcode shows the changes to the xib file. but mono touch does not see the changes, e.g. add a new item to the xib file, move something in the xib file, delete something in the xib file, mono touch just does not see the changes. This has been a constant battle I am running all the latest versions of everything but this has happened with all the version in the last 6 months, sometimes it works sometimes it does not. In my latest issue all I am trying to do is set a tableview to grouped, I cannot do this in Xcode, I cannot do this in code, I have removed the xib from the tableviewcontroller and tried to create the tableview programatically this does not work as it is still referring to the xib file even though I h av e removed the reference to it in the constructor. My project is littered with old and new xib files because of this type of issue where the only fix is to create a new file from scratch. It is a bit late for this project but I will never use Xcode again, I will create everything programatically in the future. Do I have to recreate all these files from scratch like I am doing this seems a bit over the top. ATB Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.commailto:MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.commailto:MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com
Re: [MonoTouch] having nightmares with updates to and from xcode
Hi Alex, On Thu, Sep 27, 2012 at 7:24 AM, Alex White alexwhit...@gmail.com wrote: Hi Jeff, thanks for the reply, This problems has been occurring on and off for months, but in the last week 100% of the Xcode updates are no making their way into MonoDevelop it has forced me to recode my project to be xib free, it does not help that this happened right in the middle of a load of work with beta testers, but an xib free app should be better in the long run. I have had so many crashes that always report, some in MonoDevelop and some in Xcode, I have also noted that there are times where the sync'ing back to MonoDevelop has crashed both MonoDevelop and XCode at the same time, both needing to be forced to quit which does not make sense to me as the sync'ing from what I can see is not done via processes but file watching if you see my logic. There's some IPC (via AppleScripting) between MonoDevelop and Xcode as well, during the syncing process, so this might explain that. I will in future use Xcode to only prototype screen layouts then creating the views programatically. Not only do I have to create them from scratch but I cannot use the original names as this throws up so many errors that I cannot fix, I have so many views now with 2's or 3's on the end of them. Also a side issue is renaming of objects in Xcode I have never got this to work properly and be reflected back in MonoDevelop but that is another issue, but having many objects that have the wrong name is not good. Where are the timeouts?, I will have a play with them if they are available to me. Unfortunately, they are not available for users to tweak (they are currently hard-coded in MonoDevelop). MonoDevelop's XcodeSync log file would help me figure out if it is related to the timeouts at all, or if it is something else. I will do some further testing before I go down the route of logging a bug. If you can get your hands on the appropriate XcodeSync log file in the MonoDevelop log directory, that might be enough. I added some fairly verbose debugging WriteLines in MonoDevelop's syncing logic in order to make it easier for me to debug these kinds of issues. You should be able to find them in /Users/name/Library/Logs/MonoDevelop-3.0/Xcode*.log Hope that helps, Jeff ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] UIWebView - Get HTML Source
No clue how I didn't see that before. Thank you. -- View this message in context: http://monotouch.2284126.n4.nabble.com/UIWebView-Get-HTML-Source-tp4657280p4657282.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] iPhone 5 ARM7 and ARM6
My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
Hi Justin, I *think* that as long as you continue to target an iOS older than 6.0 and keep Xcode 4.4 (don't upgrade to 4.5), you can continue to build for armv6 and it will still work on iPhone5 You just can't use iOS6 APIs. Hope that helps, Jeff On Thu, Sep 27, 2012 at 3:47 PM, Justin Hansen fence...@gmail.com wrote: Wow, so basically I'm being forced to alienate some people who have already paid my for my app. Ok, I guess that's what I'll have to do. Justin Hansen On Thu, Sep 27, 2012 at 3:46 PM, Steve Maier steve.ma...@gmail.comwrote: I had to change my project to target iOS 4.3 and higher and ARM7. Mine were just ARM6 before. It was approved yesterday. Steve Sent from my iPhone On Sep 27, 2012, at 3:44 PM, Justin Hansen fence...@gmail.com wrote: My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
Thanks, I already upgraded to 4.5 which was my mistake. I should have checked into it before upgrading. Justin Hansen On Thu, Sep 27, 2012 at 3:57 PM, Jeff Stedfast j...@xamarin.com wrote: Hi Justin, I *think* that as long as you continue to target an iOS older than 6.0 and keep Xcode 4.4 (don't upgrade to 4.5), you can continue to build for armv6 and it will still work on iPhone5 You just can't use iOS6 APIs. Hope that helps, Jeff On Thu, Sep 27, 2012 at 3:47 PM, Justin Hansen fence...@gmail.com wrote: Wow, so basically I'm being forced to alienate some people who have already paid my for my app. Ok, I guess that's what I'll have to do. Justin Hansen On Thu, Sep 27, 2012 at 3:46 PM, Steve Maier steve.ma...@gmail.comwrote: I had to change my project to target iOS 4.3 and higher and ARM7. Mine were just ARM6 before. It was approved yesterday. Steve Sent from my iPhone On Sep 27, 2012, at 3:44 PM, Justin Hansen fence...@gmail.com wrote: My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
Yup, Jeff's right. Use XCode 4.4 and target iOS 3+ with ARMv6 Use XCode 4.5 and target iOS 4.3+ with ARMv7 and drop iPhone 3G support. HOWEVER, Apple (in the past) have stopped accepting updates which don't use the current SDK, so you may be forced out anyway - I don't know how long they will accept xcode 4.4/iOS5 SDK-built apps. On Thu, Sep 27, 2012 at 8:57 PM, Jeff Stedfast j...@xamarin.com wrote: Hi Justin, I *think* that as long as you continue to target an iOS older than 6.0 and keep Xcode 4.4 (don't upgrade to 4.5), you can continue to build for armv6 and it will still work on iPhone5 You just can't use iOS6 APIs. Hope that helps, Jeff On Thu, Sep 27, 2012 at 3:47 PM, Justin Hansen fence...@gmail.com wrote: Wow, so basically I'm being forced to alienate some people who have already paid my for my app. Ok, I guess that's what I'll have to do. Justin Hansen On Thu, Sep 27, 2012 at 3:46 PM, Steve Maier steve.ma...@gmail.com wrote: I had to change my project to target iOS 4.3 and higher and ARM7. Mine were just ARM6 before. It was approved yesterday. Steve Sent from my iPhone On Sep 27, 2012, at 3:44 PM, Justin Hansen fence...@gmail.com wrote: My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] uitableview and uipagecontrol
Hi All, I have a uitableview with potentially lots of records returned, I would like to use pagination to control how many records get returned to the user on each page, I am guessing that the uipagecontrol is the way to go, am I correct, is there a better way, any examples for me to get some ideas from. Thanks Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
Hi, On Thu, Sep 27, 2012 at 9:59 PM, Nic Wise n...@fastchicken.co.nz wrote: Check your trash folder, you may have xcode.app in there which is 4.4. You can have both - just put 4.4 somewhere else and point MT at it. Or you can download it again from Apple's dev site (it's well hidden, but it is still available :) Rolf or rename is xcode4_4.app :) On Thu, Sep 27, 2012 at 8:58 PM, Justin Hansen fence...@gmail.com wrote: Thanks, I already upgraded to 4.5 which was my mistake. I should have checked into it before upgrading. Justin Hansen On Thu, Sep 27, 2012 at 3:57 PM, Jeff Stedfast j...@xamarin.com wrote: Hi Justin, I *think* that as long as you continue to target an iOS older than 6.0 and keep Xcode 4.4 (don't upgrade to 4.5), you can continue to build for armv6 and it will still work on iPhone5 You just can't use iOS6 APIs. Hope that helps, Jeff On Thu, Sep 27, 2012 at 3:47 PM, Justin Hansen fence...@gmail.com wrote: Wow, so basically I'm being forced to alienate some people who have already paid my for my app. Ok, I guess that's what I'll have to do. Justin Hansen On Thu, Sep 27, 2012 at 3:46 PM, Steve Maier steve.ma...@gmail.com wrote: I had to change my project to target iOS 4.3 and higher and ARM7. Mine were just ARM6 before. It was approved yesterday. Steve Sent from my iPhone On Sep 27, 2012, at 3:44 PM, Justin Hansen fence...@gmail.com wrote: My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
HOWEVER, Apple (in the past) have stopped accepting updates which don't use the current SDK... Do you have a source for this? I had not heard that, and I am now very concerned. Every time we update to the latest SDK we find new bugs because they change how things behave. -- Adam Kemp adam.k...@ni.com (512) 683-6058 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] uitableview and uipagecontrol
UIPageControl is totally different. It just shows the dots to indicate which page you're on. To enable pagination you just need to set PagingEnabled = true on the UITableView. That's a property of UIScrollView, and UITableView inherits from UIScrollView. That said, don't enable paging on a table view. Your users will hate you. Everyone who uses iOS knows how a table view is supposed to behave. If you make scrolling work differently they will think your app is just buggy. Quickly scrolling through tables works really well and is one of the things that makes iOS feel really fast. Don't mess with a good thing. -- Adam Kemp adam.k...@ni.com (512) 683-6058 monotouch-boun...@lists.ximian.com wrote on 09/27/2012 03:20:10 PM: From: Alex White alexwhit...@gmail.com To: MonoTouch@lists.ximian.com, Date: 09/27/2012 03:20 PM Subject: [MonoTouch] uitableview and uipagecontrol Sent by: monotouch-boun...@lists.ximian.com Hi All, I have a uitableview with potentially lots of records returned, I would like to use pagination to control how many records get returned to the user on each page, I am guessing that the uipagecontrol is the way to go, am I correct, is there a better way, any examples for me to get some ideas from. Thanks Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
This is very normal for Apple on each release of a new version of SDK. I thought it was in the developer agreements. can’t look right now. Steve Sent from Windows Mail *From:* Adam Kemp adam.k...@ni.com *Sent:* September 27, 2012 4:48 PM *To:* monotouch@lists.ximian.com *Subject:* Re: [MonoTouch] iPhone 5 ARM7 and ARM6 HOWEVER, Apple (in the past) have stopped accepting updates which don't use the current SDK... Do you have a source for this? I had not heard that, and I am now very concerned. Every time we update to the latest SDK we find new bugs because they change how things behave. -- Adam Kemp adam.k...@ni.com (512) 683-6058 ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
[MonoTouch] App Review Status: Pending an Apple Release
On Friday Sep 21st I submitted an update for my app with Min OS 6.0 using MonoTouch 6.0.0 and Xcode 4.5. It was reviewed today and later went into a status of Pending an Apple Release. I'm hoping this is an error on Apple's side. Hoping this was not a meta data issue in MonoTouch 6. Anyone else seen this? I submitted an inquiry to the App Review team. Neal Culiner NC Software, Inc. http://www.nc-software.com http://www.nc-software.com/ ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] uitableview and uipagecontrol
FWIW, I've actually got a fix for that performance issue in the works. I just need to land it. Now that I've been reminded, hopefully I'll land it tonight :-) Jeff On Thu, Sep 27, 2012 at 4:26 PM, Sebastien Pouliot sebast...@xamarin.comwrote: Hello Alex, UITableView can handle any number of cells, i.e. they do not have to be loaded in memory. I'm working on an app that shows [1] more than 209k records using Jeff's MonoTouch.SQLite (with a single, important, modification). Regards, Sebastien [1] if you really want to scroll over them - at some point having search/filtering features becomes more important than being able to show them all [2] https://github.com/jstedfast/MonoTouch.SQLite On Thu, Sep 27, 2012 at 4:20 PM, Alex White alexwhit...@gmail.com wrote: Hi All, I have a uitableview with potentially lots of records returned, I would like to use pagination to control how many records get returned to the user on each page, I am guessing that the uipagecontrol is the way to go, am I correct, is there a better way, any examples for me to get some ideas from. Thanks Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] iPhone 5 ARM7 and ARM6
You can support iPhone 5 (taller screens) by just including a splash screen with the right size. That's how the iPhone 5 decides whether to letterbox your app. You don't actually need to use any particular version of the SDK. If you want to actually call newer APIs then you have a bigger problem. It is possible with ObjectiveC to check whether a method exists at runtime, and that's often how you detect whether a feature is supported. You could probably link against the old SDK and still use some of those new features. It just might be very tedious. I am nearly certain that Apple does not reject apps which don't link against the latest SDK. I'm open to being proved wrong, but I have anecdotal evidence to the contrary, and I have been unable to find anything from Apple that says you have to link against the latest SDK. For one thing that would make your situation impossible. Plus it's just annoying as hell to have to upgrade SDKs for no good reason. -- Adam Kemp adam.k...@ni.com (512) 683-6058 monotouch-boun...@lists.ximian.com wrote on 09/27/2012 02:44:09 PM: From: Justin Hansen fence...@gmail.com To: monotouch@lists.ximian.com, Date: 09/27/2012 02:44 PM Subject: [MonoTouch] iPhone 5 ARM7 and ARM6 Sent by: monotouch-boun...@lists.ximian.com My application currently supports ARM6 and ARM7. From what I can tell I can't build for both anymore if I want to support the iPhone 5. Will Apple just let me know drop support for ARM6 and update my current app? Do I have to create a new app that is just for the new device? Can anyone tell me my options? Thanks in advance for any help. -- Justin Hansen http://www.klickwerx.com Need some technology help? - http://www.betterfly.com/LearnTheWeb ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] uitableview and uipagecontrol
Patch landed! Jeff On Thu, Sep 27, 2012 at 5:19 PM, Jeff Stedfast j...@xamarin.com wrote: FWIW, I've actually got a fix for that performance issue in the works. I just need to land it. Now that I've been reminded, hopefully I'll land it tonight :-) Jeff On Thu, Sep 27, 2012 at 4:26 PM, Sebastien Pouliot sebast...@xamarin.comwrote: Hello Alex, UITableView can handle any number of cells, i.e. they do not have to be loaded in memory. I'm working on an app that shows [1] more than 209k records using Jeff's MonoTouch.SQLite (with a single, important, modification). Regards, Sebastien [1] if you really want to scroll over them - at some point having search/filtering features becomes more important than being able to show them all [2] https://github.com/jstedfast/MonoTouch.SQLite On Thu, Sep 27, 2012 at 4:20 PM, Alex White alexwhit...@gmail.com wrote: Hi All, I have a uitableview with potentially lots of records returned, I would like to use pagination to control how many records get returned to the user on each page, I am guessing that the uipagecontrol is the way to go, am I correct, is there a better way, any examples for me to get some ideas from. Thanks Alex ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] Fun with MFMailComposeViewController
Thanks, Alex! That helps. Nic, I don't seem to have run afoul of the bug, fortunately. :-) --Chris Nic Wise wrote If you are using MFMailComposeViewController, you may want to look at this https://bugzilla.xamarin.com/show_bug.cgi?id=7443 Possibly a bug with 6.0.0 / 6.0.1 MT, if you use it in a VERY specific way when using UIAppearance in a VERY specific way :) Odds are, you will not hit this, but if you do, it's there :) On Thu, Sep 27, 2012 at 6:12 AM, Alex White lt; alexwhite68@ gt; wrote: Hi Chris, what works for me is the following two bits of code pdfFileName = Path.Combine (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), docs.pdf); NSData data = NSData.FromFile (pdfFileName); MFMailComposeViewController mail = new MFMailComposeViewController (); mail.SetSubject (docs); mail.SetMessageBody (, true); mail.Finished += HandleMailFinished; mail.AddAttachmentData (data, text/x-pdf, docs.pdf); this.NavigationController.PresentModalViewController (mail, true); void HandleMailFinished (object sender, MFComposeResultEventArgs e) { if (e.Result == MFMailComposeResult.Sent) { UIAlertView alert = new UIAlertView (sdklsdksdlkskdsd, Mail Sent, null, Ok, null); alert.Show (); } else if (e.Result == MFMailComposeResult.Cancelled) { } else if (e.Result == MFMailComposeResult.Saved) { } e.Controller.DismissModalViewControllerAnimated (true); } you can bung some code in the cancelled result if you need to. ATB Alex On 26 Sep 2012, at 21:28, Chris_M lt; kungfuchris99@ gt; wrote: My app has a UITabBarController. One of the tabs is to enable a user to send an email to my clients. I created a UIViewController for that tab bar item, and in its ViewDidLoad I have code that uses Reachability to determine if an internet connection is there, and if MFMailComposeViewController.CanSendMail, I invoke a MailComposeDelegate so the user can compose and send an email. This all works just fine. But I have two problems. First, if I cancel the email composition, and the compose email modal view goes away, the view is blank, and navigating away from this screen and back to it doesn't reset anything (not that I expected it to). So I need to figure out how to rest that mail functionality in the MFMailComposeResult.Cancelled block of code (right now it just disposes of the modal view controller in an animated fashion). Second, when I do send an email, I get a Mail Alert: Mail Sent alert as expected, but it stays on the screen and effectively locks the app until I force close it and launch it again. So obviously I'm missing a step in there somewhere. Presumably something I need to add to the MFMailComposeResult.Sent block of code. Maybe I need to set how many seconds the Mail Sent alert stays on the screen, or something like that? I couldn't find code examples online to help with this, but maybe I'm not looking for the right things. Anyway, any suggestions? --Chris MonoTouch mailing list MonoTouch@.ximian http://lists.ximian.com/mailman/listinfo/monotouch -- View this message in context: http://monotouch.2284126.n4.nabble.com/Fun-with-MFMailComposeViewController-tp4657247p4657300.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch
Re: [MonoTouch] MonoTouch 6 - Package failed to install
This is a little bit ridicules, I have never had a problem updating monotouch until this update. I know i'm not the only one having problems as there are many posts out there about this install issue. I contacted xamarin support and was told to download the packages directly (not through mono develop) which didn't work any better. No additional response from them. Now they have release 6.0.1, which fails as well. Xamarin- please take this serious and fix it. -- View this message in context: http://monotouch.2284126.n4.nabble.com/MonoTouch-6-Package-failed-to-install-tp4657083p4657301.html Sent from the MonoTouch mailing list archive at Nabble.com. ___ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch