I'm using OpenTok to implement WEBRTC. When i start the current view where you can live chat first time the subscriber view doens't appear, but when i navigate back to another view and then back to the live chat view it works - and this is the issue all time... Is there a way i can refresh or reload my current viewcontroller. I was thinking to make a button in the live chat view which can refresh or reload the view?
#IBAction func RefreshButton(sender: AnyObject)
{
//Refresh
}
Related
I implemented Progress bar loader for android web view,
But the progress bar not dismissed after the response came in AJAX calls.
Whenever I clicked ajax calls based link in that site,progress bar appearing but not dismissed ,after getting the response also.
How can I overcome this.
I have a setup like this:
All the segues are sit to Push, right now if i move from SignupView to LoginView it seems like it duplicates the LoginView, because the back button takes me to LoginView again, and then the SignupView, and when i try to add a segue from LoginView to the tableViewController the app crashes.
How exactly should i implement this ?
PS: the segue to the LoginView, is coming from the Login Button in the SignUp view. And to the tableview is doing from the Login Button in the LoginView
Hmm, I just set up a Storyboard to mimic your setup and when I move to Login view, the back button takes me right back to the SignUp view. I would check the Connections inspector for each view and make sure nothing extra is in there.
I'm using backbone for a mobile app dev project (phonegap compiled) but have a problem with the router history. I'm firing the events on tap for extra responsiveness on the mobile platform, however pages visited by triggering tap do not appear to be included in the router's history. When hitting the back button, those are always skipped.
Is there any way to make the backbone router's history work with the tap event?
Thanks for your help
You must call use the navigate method in order to add a page to Backbone history. You can do it programmatically as follows:
var MyApp = new Backbone.Router();
MyApp.navigate('newPage', {trigger: true});
Basically whenever you fire a tap event you can navigate to a particular based on the tap event parameters.
I'm trying to develop an application and am stuck at this specific part. I was previously taking a different approach through a web form displayed in UIWebView, but was having issues getting it to open how I wanted. I changed the UI and would now like to take this approach:
Background
User needs to be able to get directions to a specific shop location. The UI contains an instance of UIText Field and a round rect button. The User should be able to click the button and the default Maps application will pop up for the user.
How I imagine this being coded:
1) User enters address in textField
- textField stores address as variable (%var%)
2) User presses Go button
- Button adds variable (%var%) from textField to URL string (see below)
- Button submits full URL to be opened in Safari
3) Safari opens request in Maps application
Image Example of UI: http://i55.tinypic.com/vnjc41.jpg
http://maps.google.com/?saddr=%var%&daddr=123+Road+St%2C+Town%2C+CA+90210&hl=en
Found a better way to do this using a button to open the maps application:
-(IBAction)hbgdirButton:(id)sender{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://maps.google.com/maps?q=Harrisburg+PA&hl=en"]];
}
Building an iPhone application. The delegate loads a SplashScreenView which sits there until the user taps the screen. When the user is done tapping the screen, I release that view and I want to load my custom Navigation Controller. I can't figure out how to load the Navigation Controller I designed in IB...it's currently loading a blank instance of UINavigationController.
I'm running this from my delegate:
mnc = [[MyNavigationController alloc] initWithNibName:#"MyNavigation" bundle:nil];
[self.window addSubview:mnc.view];
MyNavigation is a XIB I created which only has File's Owner/First Responder/a Navigation Controller I added. I set the class of File's Owner to MyNavigationController but I'm not sure how to tell it that I want the view "MyNavigationController" uses to be the one I designed. When I try to drag the "view" outlet of File's Owner in IB to my designed Navigation Controller, it doesn't seem to like it.
I'm just not sure how to connect the dots here. Any help would be incredibly appreciated.
What is the root controller of your navigation controller? The "blank" thing that you see is probably your navigation controller loaded with no controllers for it to navigate.
Update
You don't need "two controllers" per se. It's just that navigation controller is the one that controls the stack of other controllers you provide it with. First you init your navigation controller with root view controller (with initWithRootViewController method you mentioned), then you can push (pushViewController:animated:) or pop (popViewController:animated:) other controllers to or off of the stack of navigation controller.
Apple developer documentation provides plenty information in view controller programming guide on how different types of view controllers interact.