Coder Social home page Coder Social logo

vizllx / draggableyoutubefloatingvideo Goto Github PK

View Code? Open in Web Editor NEW
316.0 24.0 83.0 57.44 MB

This demo app will animate the view just like Youtube mobile app while tapping on video a UIView pops up from the right corner of the screen and the view can be dragged to the right corner through Pan Gesture and more features are there as Youtube iOS app. The whole design is done with Auto Layout and it is compatible with iOS 6 too. Compatible with any screen size.

License: MIT License

Objective-C 71.00% Ruby 8.19% Swift 20.80%
youtube-ios pan-gesture video animation iosanimation youtube

draggableyoutubefloatingvideo's Introduction

DraggableFloatingViewController

Like YouTube app

DraggableFloatingViewController allows you to play videos on a floating mini window at the bottom of your screen from sites like YouTube, Vimeo & Facebook or custom video , yes you have to prepare your video view for that.

How it works

The view will animate the view just like Youtube mobile app, while tapping on video a UIView pops up from right corner of the screen and the view can be dragged to right corner through Pan Gesture and more features are there as Youtube iOS app

Screenshot

Output sample

Usage

extend this class

set your video view in "viewDidLoad" of subclass

override func viewDidLoad() {

    self.setupViewsWithVideoView(yourMoivePlayer.view, //UIView
        videoViewHeight: yourPlayerHeight, //CGFloat
        minimizeButton: yourButton //UIButton
    )

    // add your view to bodyView
    self.bodyView.addSubview(yourView)
}

in parent view controller

show

func showSecondController() {
    removeDraggableFloatingViewController()
    self.videoViewController = VideoDetailViewController()
    self.videoViewController.delegate = self
    self.videoViewController.showVideoViewControllerOnParentVC(self)
}

dismiss

func removeDraggableFloatingViewController() {
    if self.videoViewController != nil {
        self.videoViewController.removeAllViews()
        self.videoViewController = nil
    }
}

Please edit "info.plist"

To disable swipe down gesture of Notification Center, you need to edit "info.plist" to hide status bar. http://stackoverflow.com/questions/18059703/cannot-hide-status-bar-in-ios7 editInfoPlist




please override if you want

override func didExpand() {
    showVideoControl()
}
override func didMinimize() {
    hideVideoControl()
}

Please see demo app

If you want to use this, you have to check this demo app.

draggableyoutubefloatingvideo's People

Contributors

bitdeli-chef avatar vizllx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

draggableyoutubefloatingvideo's Issues

Auto Layout Constraint Failure Error

2015-02-02 10:18:52.227 YouTubeDraggableVideo[70234:1908060] Unknown class BSGrowingTextView in Interface Builder file.
2015-02-02 10:18:52.239 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSLayoutConstraint:0x7fbfe1f483a0 V:[UIView:0x7fbfe4211420(45)]>",
    "<NSLayoutConstraint:0x7fbfe41303f0 V:[UITableView:0x7fbfe2167c00(265)]>",
    "<NSLayoutConstraint:0x7fbfe40d98a0 V:[UIView:0x7fbfe1fb48c0(49)]>",
    "<NSLayoutConstraint:0x7fbfe1f995d0 V:|-(204)-[UIView:0x7fbfe4211420]   (Names: '|':UIView:0x7fbfe4213c20 )>",
    "<NSLayoutConstraint:0x7fbfe407cf80 V:[UIView:0x7fbfe4211420]-(5)-[UITableView:0x7fbfe2167c00]>",
    "<NSLayoutConstraint:0x7fbfe408a010 V:[UITableView:0x7fbfe2167c00]-(0)-[UIView:0x7fbfe1fb48c0]>",
    "<NSLayoutConstraint:0x7fbfe40ace50 V:[UIView:0x7fbfe1fb48c0]-(0)-|   (Names: '|':UIView:0x7fbfe4213c20 )>",
    "<NSLayoutConstraint:0x7fbfe40d2070 V:|-(0)-[UIView:0x7fbfe4213c20]   (Names: '|':UIView:0x7fbfe1f91eb0 )>",
    "<NSLayoutConstraint:0x7fbfe40b8930 V:[UIView:0x7fbfe4213c20]-(0)-[_UILayoutGuide:0x7fbfe4005f60]>",
    "<_UILayoutSupportConstraint:0x7fbfe40d8340 V:[_UILayoutGuide:0x7fbfe4005f60(0)]>",
    "<_UILayoutSupportConstraint:0x7fbfe1f47d80 _UILayoutGuide:0x7fbfe4005f60.bottom == UIView:0x7fbfe1f91eb0.bottom>",
    "<NSLayoutConstraint:0x7fbfe1fbb5a0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x7fbfe1f91eb0(667)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe41303f0 V:[UITableView:0x7fbfe2167c00(265)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.245 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSLayoutConstraint:0x7fbfe4130e10 H:[UIImageView:0x7fbfe1ceb3b0(304)]>",
    "<NSLayoutConstraint:0x7fbfe41338e0 H:|-(8)-[UIImageView:0x7fbfe1ceb3b0]   (Names: '|':UITableViewCellContentView:0x7fbfe1ceb2e0 )>",
    "<NSLayoutConstraint:0x7fbfe4133930 H:[UIImageView:0x7fbfe1ceb3b0]-(8)-|   (Names: '|':UITableViewCellContentView:0x7fbfe1ceb2e0 )>",
    "<NSLayoutConstraint:0x7fbfe4135460 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x7fbfe1ceb2e0(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4130e10 H:[UIImageView:0x7fbfe1ceb3b0(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.251 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe1ce1dd0 V:[UIImageView:0x7fbfe4120580(56)]>",
"<NSLayoutConstraint:0x7fbfe4133a20 UITableViewCellContentView:0x7fbfe1ceb2e0.bottomMargin == UIImageView:0x7fbfe4120580.bottom + 9>",
"<NSLayoutConstraint:0x7fbfe4133a70 UIImageView:0x7fbfe4120580.top == UITableViewCellContentView:0x7fbfe1ceb2e0.topMargin + 6>",
"<NSLayoutConstraint:0x7fbfe4135b90 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fbfe1ceb2e0(87.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe1ce1dd0 V:[UIImageView:0x7fbfe4120580(56)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.252 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe41334d0 H:[UIImageView:0x7fbfe41372c0(304)]>",
"<NSLayoutConstraint:0x7fbfe4139680 H:|-(8)-[UIImageView:0x7fbfe41372c0]   (Names: '|':UITableViewCellContentView:0x7fbfe41371d0 )>",
"<NSLayoutConstraint:0x7fbfe41396d0 H:[UIImageView:0x7fbfe41372c0]-(8)-|   (Names: '|':UITableViewCellContentView:0x7fbfe41371d0 )>",
"<NSLayoutConstraint:0x7fbfe1f89430 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x7fbfe41371d0(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe41334d0 H:[UIImageView:0x7fbfe41372c0(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.253 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4137760 V:[UIImageView:0x7fbfe4137640(56)]>",
"<NSLayoutConstraint:0x7fbfe41397c0 UITableViewCellContentView:0x7fbfe41371d0.bottomMargin == UIImageView:0x7fbfe4137640.bottom + 9>",
"<NSLayoutConstraint:0x7fbfe4139810 UIImageView:0x7fbfe4137640.top == UITableViewCellContentView:0x7fbfe41371d0.topMargin + 6>",
"<NSLayoutConstraint:0x7fbfe1f89480 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fbfe41371d0(87.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4137760 V:[UIImageView:0x7fbfe4137640(56)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.254 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4136de0 H:[UIImageView:0x7fbfe413cd60(304)]>",
"<NSLayoutConstraint:0x7fbfe413edb0 H:|-(8)-[UIImageView:0x7fbfe413cd60]   (Names: '|':UITableViewCellContentView:0x7fbfe413cc70 )>",
"<NSLayoutConstraint:0x7fbfe413ee00 H:[UIImageView:0x7fbfe413cd60]-(8)-|   (Names: '|':UITableViewCellContentView:0x7fbfe413cc70 )>",
"<NSLayoutConstraint:0x7fbfe1fa1ce0 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x7fbfe413cc70(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4136de0 H:[UIImageView:0x7fbfe413cd60(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.254 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe413d200 V:[UIImageView:0x7fbfe413d0e0(56)]>",
"<NSLayoutConstraint:0x7fbfe413eef0 UITableViewCellContentView:0x7fbfe413cc70.bottomMargin == UIImageView:0x7fbfe413d0e0.bottom + 9>",
"<NSLayoutConstraint:0x7fbfe413ef40 UIImageView:0x7fbfe413d0e0.top == UITableViewCellContentView:0x7fbfe413cc70.topMargin + 6>",
"<NSLayoutConstraint:0x7fbfe1fa1d30 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fbfe413cc70(87.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe413d200 V:[UIImageView:0x7fbfe413d0e0(56)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.255 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4142490 H:[UIImageView:0x7fbfe4142270(304)]>",
"<NSLayoutConstraint:0x7fbfe4144640 H:|-(8)-[UIImageView:0x7fbfe4142270]   (Names: '|':UITableViewCellContentView:0x7fbfe4142180 )>",
"<NSLayoutConstraint:0x7fbfe4144690 H:[UIImageView:0x7fbfe4142270]-(8)-|   (Names: '|':UITableViewCellContentView:0x7fbfe4142180 )>",
"<NSLayoutConstraint:0x7fbfe1fae080 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x7fbfe4142180(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4142490 H:[UIImageView:0x7fbfe4142270(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.256 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4142760 V:[UIImageView:0x7fbfe4142640(56)]>",
"<NSLayoutConstraint:0x7fbfe4144780 UITableViewCellContentView:0x7fbfe4142180.bottomMargin == UIImageView:0x7fbfe4142640.bottom + 9>",
"<NSLayoutConstraint:0x7fbfe41447d0 UIImageView:0x7fbfe4142640.top == UITableViewCellContentView:0x7fbfe4142180.topMargin + 6>",
"<NSLayoutConstraint:0x7fbfe1fae0d0 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fbfe4142180(87.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4142760 V:[UIImageView:0x7fbfe4142640(56)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.257 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4141d90 H:[UIImageView:0x7fbfe4147da0(304)]>",
"<NSLayoutConstraint:0x7fbfe414a140 H:|-(8)-[UIImageView:0x7fbfe4147da0]   (Names: '|':UITableViewCellContentView:0x7fbfe4147cb0 )>",
"<NSLayoutConstraint:0x7fbfe414a190 H:[UIImageView:0x7fbfe4147da0]-(8)-|   (Names: '|':UITableViewCellContentView:0x7fbfe4147cb0 )>",
"<NSLayoutConstraint:0x7fbfe1fbfb30 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x7fbfe4147cb0(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4141d90 H:[UIImageView:0x7fbfe4147da0(304)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:52.257 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe4148240 V:[UIImageView:0x7fbfe4148120(56)]>",
"<NSLayoutConstraint:0x7fbfe414a280 UITableViewCellContentView:0x7fbfe4147cb0.bottomMargin == UIImageView:0x7fbfe4148120.bottom + 9>",
"<NSLayoutConstraint:0x7fbfe414a2d0 UIImageView:0x7fbfe4148120.top == UITableViewCellContentView:0x7fbfe4147cb0.topMargin + 6>",
"<NSLayoutConstraint:0x7fbfe1fbfb80 'UIView-Encapsulated-Layout-Height' V:[UITableViewCellContentView:0x7fbfe4147cb0(87.5)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe4148240 V:[UIImageView:0x7fbfe4148120(56)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:53.159 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe1f483a0 V:[UIView:0x7fbfe4211420(45)]>",
"<NSLayoutConstraint:0x7fbfe41303f0 V:[UITableView:0x7fbfe2167c00(265)]>",
"<NSLayoutConstraint:0x7fbfe40d98a0 V:[UIView:0x7fbfe1fb48c0(49)]>",
"<NSLayoutConstraint:0x7fbfe1f995d0 V:|-(204)-[UIView:0x7fbfe4211420]   (Names: '|':UIView:0x7fbfe4213c20 )>",
"<NSLayoutConstraint:0x7fbfe407cf80 V:[UIView:0x7fbfe4211420]-(5)-[UITableView:0x7fbfe2167c00]>",
"<NSLayoutConstraint:0x7fbfe408a010 V:[UITableView:0x7fbfe2167c00]-(0)-[UIView:0x7fbfe1fb48c0]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe4153c80 h=--& v=--& UIView:0x7fbfe1fb48c0.midY == + 642.5>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe41303f0 V:[UITableView:0x7fbfe2167c00(265)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:53.159 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412bdc0 V:[UIButton:0x7fbfe412d180(59)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f88210 h=--& v=--& V:[UIButton:0x7fbfe412d180(82)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412bdc0 V:[UIButton:0x7fbfe412d180(59)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:53.171 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412ff00 V:[UIView:0x7fbfe412fc80(204)]>",
"<NSLayoutConstraint:0x7fbfe412ff50 UIButton:0x7fbfe412d180.top == UIView:0x7fbfe412fc80.top>",
"<NSLayoutConstraint:0x7fbfe412fc30 UIView:0x7fbfe412fc80.bottom == UIButton:0x7fbfe412d180.bottom + 145>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f88210 h=--& v=--& V:[UIButton:0x7fbfe412d180(82)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412fc30 UIView:0x7fbfe412fc80.bottom == UIButton:0x7fbfe412d180.bottom + 145>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:53.172 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412ff50 UIButton:0x7fbfe412d180.top == UIView:0x7fbfe412fc80.top>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe40df6c0 h=--& v=--& UIButton:0x7fbfe412d180.midY == + 19>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f88210 h=--& v=--& V:[UIButton:0x7fbfe412d180(82)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1fd0ee0 h=--& v=--& MPMovieView:0x7fbfe1fa5040.midY == + 102>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1fce290 h=--& v=--& V:[MPMovieView:0x7fbfe1fa5040(204)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412ff50 UIButton:0x7fbfe412d180.top == UIView:0x7fbfe412fc80.top>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:53.540 YouTubeDraggableVideo[70234:1908060] Playing OK
2015-02-02 10:18:53.540 YouTubeDraggableVideo[70234:1908060] loadState=2
2015-02-02 10:18:53.559 YouTubeDraggableVideo[70234:1908060] Playing OK
2015-02-02 10:18:53.559 YouTubeDraggableVideo[70234:1908060] loadState=3
2015-02-02 10:18:54.881 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412f900 H:[UIButton:0x7fbfe412f620(34)]>",
"<NSLayoutConstraint:0x7fbfe404f840 H:|-(5)-[UIView:0x7fbfe42120c0]   (Names: '|':UIView:0x7fbfe1fb48c0 )>",
"<NSLayoutConstraint:0x7fbfe406e1f0 H:[UIView:0x7fbfe42120c0]-(4)-[UIButton:0x7fbfe412f620]>",
"<NSLayoutConstraint:0x7fbfe4056d70 H:[UIButton:0x7fbfe412f620]-(5)-|   (Names: '|':UIView:0x7fbfe1fb48c0 )>",
"<NSLayoutConstraint:0x7fbfe408a060 H:[UIView:0x7fbfe1fb48c0]-(0)-|   (Names: '|':UIView:0x7fbfe4213c20 )>",
"<NSLayoutConstraint:0x7fbfe40ace00 H:|-(0)-[UIView:0x7fbfe1fb48c0]   (Names: '|':UIView:0x7fbfe4213c20 )>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe415b470 h=--& v=--& UIView:0x7fbfe42120c0.midX == + 168.5>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f881a0 h=--& v=--& H:[UIView:0x7fbfe4213c20(371.325)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412f900 H:[UIButton:0x7fbfe412f620(34)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:54.882 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe408a060 H:[UIView:0x7fbfe1fb48c0]-(0)-|   (Names: '|':UIView:0x7fbfe4213c20 )>",
"<NSLayoutConstraint:0x7fbfe40ace00 H:|-(0)-[UIView:0x7fbfe1fb48c0]   (Names: '|':UIView:0x7fbfe4213c20 )>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f881a0 h=--& v=--& H:[UIView:0x7fbfe4213c20(371.325)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe4163e20 h=--& v=--& UIView:0x7fbfe1fb48c0.midX == + 187.5>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe408a060 H:[UIView:0x7fbfe1fb48c0]-(0)-|   (Names: '|':UIView:0x7fbfe4213c20 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:54.885 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412ff00 V:[UIView:0x7fbfe412fc80(204)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe40d2020 h=--& v=--& V:[UIView:0x7fbfe412fc80(198.162)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412ff00 V:[UIView:0x7fbfe412fc80(204)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:54.886 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412be30 H:[UIButton:0x7fbfe412d180(82)]>",
"<NSLayoutConstraint:0x7fbfe412ffa0 UIButton:0x7fbfe412d180.leading == UIView:0x7fbfe412fc80.leading>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f44b10 h=--& v=--& UIButton:0x7fbfe412d180.midX == + 41>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe40d1d20 h=--& v=--& MPMovieView:0x7fbfe1fa5040.midX == + 185.662>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1fc3070 h=--& v=--& H:[MPMovieView:0x7fbfe1fa5040(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412be30 H:[UIButton:0x7fbfe412d180(82)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-02-02 10:18:54.887 YouTubeDraggableVideo[70234:1908060] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
"<NSLayoutConstraint:0x7fbfe412ffa0 UIButton:0x7fbfe412d180.leading == UIView:0x7fbfe412fc80.leading>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1f44b10 h=--& v=--& UIButton:0x7fbfe412d180.midX == + 41>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe40d1d20 h=--& v=--& MPMovieView:0x7fbfe1fa5040.midX == + 185.662>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe1fc3070 h=--& v=--& H:[MPMovieView:0x7fbfe1fa5040(375)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fbfe40f4ad0 h=--& v=--& H:[UIButton:0x7fbfe412d180(82)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fbfe412ffa0 UIButton:0x7fbfe412d180.leading == UIView:0x7fbfe412fc80.leading>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.

Tabbar issue

Hi ,
How to manage floating view with tabbar. it's hiding tabbar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.