tonisalae / tsminiwebbrowser Goto Github PK
View Code? Open in Web Editor NEWIn-App web browsing support for iPhone apps
Home Page: http://indiedevstories.com
License: MIT License
In-App web browsing support for iPhone apps
Home Page: http://indiedevstories.com
License: MIT License
Hey - this library is great!
Would be really cool if I could use it with Cocoapods though. Would you mind submitting it to them?
Hi I am experiencing the above issue in iOS7 and have made a fix in my app. I would like to confirm if anyone else is having this issue?
As my fix is for iOS7 only should I put a logic statement like
if (iOS7) else do other code or is there a better way?
Perhaps use dismissViewControllerAnimated:completion:
instead.
Thank you for an awesome cocoapod.
Hi there,
What would you suggest for usage with a tab bar and a nav controller - will we need to create a new mode? At the moment I'm using the default (navigation mode?) and it works well, except that the action sheet is not shown from the tab bar, but the bottom of the screen and so the cancel button can't be selected.
My first idea was to not create a new mode, but add a config option called "useTabBar" (or similar), and that would simply tell it to present the actionsheet from the tab bar, whilst maintaining the current mode behaviour (e.g. navigation).
Alternatively, we could create a new mode TSMiniWebBrowserModeNavigationTabBar or something..
What do you think?
On iOS7 the NavigationBars are semitransparent. Now the WebView can be seen through the navigationbar.
Perhaps scrollView.contentInset = UIEdgeInsetsMake(64, 0, 0, 0);
can do it?
Hi,
I can't seem to be around a linker error (found below) I get when I install the latest TSMiniWebBrowser (v1.2) from Xamarin Component Store and making a Release build. I have a feeling that the TSMiniWebBrowser DLL hasn't been generated with the arm64 supported architecture enabled, which is necessary for new APP's to App Store. Maybe I'm all wrong, so I hope that someone can help me, please.
Thanks in advance.
I'm running Xamarin Studio Version 5.7 (build 661) on Mac OS X 10.10.1, with Xcode 6.1.1 (6611)
Build 6A2008a
MTOUCHTASK: warning MT1301: Native library libTSMiniWebBrowser.a
(i386, armv7, armv7s) was ignored since it does not match the current build architectures (armv7, arm64)
MTOUCHTASK: warning MT1301: Native library libTSMiniWebBrowser.a
(i386, armv7, armv7s) was ignored since it does not match the current build architectures (armv7, arm64)
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -lc++ -liconv -lz -ObjC -fobjc-arc -lsqlite3 -ObjC -fobjc-arc -Wl,-pie -arch arm64 -miphoneos-version-min=7.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/ICONHairSpa.exe.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/Xamarin.iOS.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/mscorlib.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Xml.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Core.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/SharedOndoLibrary.IOSPhone.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Xml.Linq.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/OndoCommonFiles.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.Dialog-1.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Json.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/ScanditSDK.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.FacebookConnect.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/MonoTouch.Dialog.PickerElement.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/TSMiniWebBrowser.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/SDWebImage.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/BTProgressHUD.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/System.Web.Services.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/Xamarin.Auth.iOS.dll.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/registrar.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/main.arm64.o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libFacebookSDK.a /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libSDWebImage.a -force_load /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/libscanditsdk-iphone-4.3.0.a -o /Users/jsgundorf/Projects/OndoDots/ICONHairSpa/obj/iPhone/Release/mtouch-cache/64/Output/ICONHairSpa -framework AVFoundation -framework AudioToolbox -framework QuartzCore -framework CoreImage -framework CoreLocation -framework Foundation -framework MapKit -framework MobileCoreServices -framework Security -framework SystemConfiguration -framework CoreGraphics -framework MediaPlayer -framework MessageUI -framework UIKit -framework CFNetwork -framework CoreVideo -framework CoreMedia -framework ImageIO -weak_framework Accounts -weak_framework Social -lz -liconv -u _FBAppEventNameAchievedLevel -u _FBAppEventNameActivatedApp -u _FBAppEventNameAddedPaymentInfo -u _FBAppEventNameAddedToCart -u _FBAppEventNameAddedToWishlist -u _FBAppEventNameCompletedRegistration -u _FBAppEventNameCompletedTutorial -u _FBAppEventNameInitiatedCheckout -u _FBAppEventNameRated -u _FBAppEventNamePurchased -u _FBAppEventNameSearched -u _FBAppEventNameSpentCredits -u _FBAppEventNameUnlockedAchievement -u _FBAppEventNameViewedContent -u _FBAppEventParameterNameContentID -u _FBAppEventParameterNameContentType -u _FBAppEventParameterNameCurrency -u _FBAppEventParameterNameDescription -u _FBAppEventParameterNameLevel -u _FBAppEventParameterNameMaxRatingValue -u _FBAppEventParameterValueNo -u _FBAppEventParameterNameNumItems -u _FBAppEventParameterNamePaymentInfoAvailable -u _FBAppEventParameterNameRegistrationMethod -u _FBAppEventParameterNameSearchString -u _FBAppEventParameterNameSuccess -u _FBAppEventParameterValueYes -u _FBAppEventsLoggingResultNotification -u _FBErrorAppEventsReasonKey -u _FBErrorDialogInvalidLikeObjectID -u _FBErrorDialogInvalidOpenGraphActionParameters -u _FBErrorDialogInvalidOpenGraphObject -u _FBErrorDialogInvalidShareParameters -u _FacebookNativeApplicationDomain -u _FacebookSDKDomain -u _FBErrorHTTPStatusCodeKey -u _FBInvalidOperationException -u _FBErrorLoginFailedOriginalErrorCode -u _FBErrorLoginFailedReason -u _FBErrorLoginFailedReasonInlineCancelledValue -u _FBErrorLoginFailedReasonInlineNotCancelledValue -u _FBErrorLoginFailedReasonOtherError -u _FBErrorLoginFailedReasonSystemDisallowedWithoutErrorValue -u _FBErrorLoginFailedReasonSystemError -u _FBErrorLoginFailedReasonUnitTestResponseUnrecognized -u _FBErrorLoginFailedReasonUserCancelledSystemValue -u _FBErrorLoginFailedReasonUserCancelledValue -u _FBErrorParsedJSONResponseKey -u _FBErrorReauthorizeFailedReasonSessionClosed -u _FBErrorReauthorizeFailedReasonUserCancelled -u _FBErrorReauthorizeFailedReasonUserCancelledSystem -u _FBErrorReauthorizeFailedReasonWrongUser -u _FBErrorSessionKey -u _FBErrorUnprocessedURLKey -u _FBInsightsLoggingResultNotification -u _FBGraphBasePath -u _FBNonJSONResponseProperty -u _FBSessionDidBecomeClosedActiveSessionNotification -u _FBSessionDidBecomeOpenActiveSessionNotification -u _FBSessionDidSetActiveSessionNotification -u _FBSessionDidUnsetActiveSessionNotification -u _FBTokenInformationAppIDKey -u _FBTokenInformationDeclinedPermissionsKey -u _FBTokenInformationExpirationDateKey -u _FBTokenInformationIsFacebookLoginKey -u _FBTokenInformationLoginTypeLoginKey -u _FBTokenInformationPermissionsKey -u _FBTokenInformationPermissionsRefreshDateKey -u _FBTokenInformationRefreshDateKey -u _FBTokenInformationTokenKey -u _FBTokenInformationUserFBIDKey -u _FBLoggingBehaviorAccessTokens -u _FBLoggingBehaviorAppEvents -u _FBLoggingBehaviorCacheErrors -u _FBLoggingBehaviorDeveloperErrors -u _FBLoggingBehaviorFBRequests -u _FBLoggingBehaviorFBURLConnections -u _FBLoggingBehaviorInformational -u _FBLoggingBehaviorPerformanceCharacteristics -u _FBLoggingBehaviorSessionStateTransitions -u _FBLoggingBehaviorUIControlErrors -u _FBPostObject -u _SDWebImageDownloadStartNotification -u _SDWebImageDownloadStopNotification -u _monotouch_GetFolderPath -u _monotouch_timezone_get_data -u _monotouch_log -u _xamarin_release_managed_ref -u _xamarin_create_managed_ref -u _xamarin_get_block_descriptor -u _xamarin_IntPtr_objc_msgSend_IntPtr -u _xamarin_IntPtr_objc_msgSendSuper_IntPtr -u _CreateZStream -u _CloseZStream -u _Flush -u _ReadZStream -u _WriteZStream -u _monotouch_start_wwan /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonotouch-sgen.a /Library/Frameworks/Xamarin.iOS.framework/Versions/8.6.0.51/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libapp.a
Undefined symbols for architecture arm64:
"OBJC_CLASS$_TSMiniWebBrowser", referenced from:
objc-class-ref in registrar.arm64.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MTOUCHTASK: error MT5211: Native linking failed, undefined Objective-C class: OBJC_CLASS$_TSMiniWebBrowser. If 'OBJC_CLASS$_TSMiniWebBrowser' is a protocol from a third-party binding, please check that it has the [Protocol] attribute in its api definition file, otherwise verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
hello im using this in a all portrait app.. how can i enable video being played to rotate orientation without enabled the actual mini-browser to change?
When you open a youtube-video in the browser (TSMiniWebBrowserModeModal) and close it afterwards, the browser is closed with weird graphic glitches leftover and you cannot open the browser or other views with modalMode. You must restart the app.
I use TSMiniWebBrowser with a navigation controller-- I found that if I push the view onto the navigation controller, but then press "back" very quickly in the middle of the initial page load request-- the app crashes, with a message sent to a deallocated instance of TSMiniWebBrowser.
I found a quick fix for this, simply add:
-(void)dealloc
{
[webView setDelegate:nil];
}
I can submit a request through Github..
I've been trying to figure out a way, but had no luck so far.
WebView keeps loading in the background even if we Pop the ViewController. It keeps using data in the background.
Add the following code to viewWillDisappear of the library
[webView stopLoading];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.