i was having problems to make the MPMoviePlayerController controls disappear.
I tried to do it via:
...
MPMoviePlayerController *mplayer;
[mplayer setControlStyle:MPMovieControlStyleNone];
...
The problem is however that the controls appear for a brief second. I don't want to make my app look unprofessional so making them disappear completely is what i aim for.
There is a suggestion for a solution to this problem, but i in my tests it didn't work. I also tried the old var for solving this but no effect in this case either
mplayer.movieControlMode = MPMovieControlModeHidden; // old var
If anyone can give me hint on how to solve this it would be much appreciated!
Thanks in advance!
Best regards,
zhengtonic
If anyone is interested you can solve this by NOT using the MPMoviePlayerViewController.
Just use the MPMoviePlayerController and it works. Don't know why ...
Much thanks to the ppl on #iphonedev who gave me the tip.
Best regards,
zhengtonic.
Related
I have tried several options in order to implement reverse scrolling, but nothing seems to work.
The best example for what I am trying to do can be found in this link:
https://codepen.io/patrikhjelm/pen/klcnj
$(document).ready(function(){
$(window).scroll(function(){
$('.right').css('transform', 'translate3d(0,' + $(this).scrollTop()*2 + 'px, 0)');
}).scroll();
});
(I would explain with words but the visual in this case is much more expressive..)
I have already tried programming in JS while using UIWebView and WKWebView - but the scroll seems really choppy (I mean like really really choppy)
I was looking into SpriteKit before I decided to write here cause things just were not adding up. Has anyone had this particular demand and managed to solve it?
Thank - you
problem solved!
Just use view.frame.origin.y = scrollView.contentOffset.y * 2
works like a charm.
I am going through a iOS Programming tutorial using Xcode 8.1. Everything is going well until I needed to add a valueChanged event to the uisegmentcontrol element. When I drag it to bind to the function it does not work. Here is the gif I made that could explain better. Any help is greatly appreciated. thanks
Edit: Here is another gif of the actual tutorial that shows how the event is bound to the function. The full video can be found here actual tutorial. Thank you
I think you not set the class name of the scene.
E.g.
Name of Class for the Scene: ViewController.m
set StoryboardID if you need.
Thank you all. I just figure out that Xcode now add the parameter Any to all the functions generated. So to be able to bind the event to the function, I needed to change the parameter to AnyObject. I hope it helps someone else in the same situation. :)
I'm having a bit of trouble with Corona's transitions with easing.
Here is my code:
transitionTime = 120
transition.to( newDot, { time = transitionTime, y = newDot.destination_y, transition=easing.outBounce } )
Unfortunately, it's not actually bouncing at all. It just seems to be moving normally. I'm not sure if I'm doing something wrong or if something else needs to be done before the easing transition will display.
Any help would be greatly appreciated!
Thank you!
I'm pretty sure that transition API never worked properly. What I always would do is make 2 transitions with one having a slight delay like so:
transition.to(newDot, {time=80,y = newDot.destination_y - 50})
transition.to(newDot, {delay=80, time=40, y=newDot.destination_y})
Just work with something like that so just change up the numbers to your liking. Hope this helps.
I think you are using old corona version.The easing properties inBounce, outBounce, inOutBounce, outInBounce are applied only in new versions of corona. These properties will not work in old one.
Anyone know a fix for this?
There is a discussion going on here as well: https://github.com/gotosleep/JASidePanels/pull/164
I know this post is too old but for those users who still have the same problem check my answer here :
https://stackoverflow.com/a/21426077/1572408
Hope it helps :)
It seems all codes inside fx:Script blocks are black with no highlights. That's pretty inconvenient. Can anyone please let me know how to turn it on? Thanks!
First check that the active perspective is "Flash".
Then Window->Preferences. On the left side of the window expand Flash Builder->Editors->Syntax Coloring. On the right side you can set the colors for ActionsScript, CSS and MXML.
If after tinkering around you cannot fix the problem try to delete the "Adobe Flash Builder 4.5" folder located in the user's folder.
Hope this helps
Problem solved. I was using two different namespaces in Application and Module. It's "adobe.com/2006/mxml"; in mx:Application and "library://ns.adobe.com/flex/mx" in mx:Module. After the namespace in mx:Application was made consistent with the one from mx:Module, all syntax are highlighted correctly.