Comments (7)
Working on it, will need a lot of changes though
from ishowcase.
Please check the rotation-support
branch
from ishowcase.
Still not working. You should test it on an iPad. I have tried adding autolayout to the view and subviews using Cartography pod. The problem is to recalculate the clear area after the layout.
from ishowcase.
If you could try the example application on the iPad it would help as rotation was working for me with the example application.
from ishowcase.
I'm sorry, i am using ipad 2 (9.3) simulator. Its your update example what
i was running. Look :
2016-07-25 11:02 GMT-04:30 Rahul Iyer [email protected]:
If you could try the example application on the iPad it would help as
rotation was working for me with the example application.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIfVN1HtkF8zNWqwDj7YHJbBe3qb8unwks5qZNcIgaJpZM4JQ3dX
.
Aileen Moreno < [email protected] >
from ishowcase.
do try now
from ishowcase.
Thanks.
It works.
I have added a method to the delegate, so when the user tap and dismiss the
view the location where it was tapped can be known.
private func getGestureRecgonizer() -> UIGestureRecognizer {
let singleTap = UITapGestureRecognizer(target: self, action: #selector(
showcaseTapped(_:)))
singleTap.numberOfTapsRequired = 1
singleTap.numberOfTouchesRequired = 1
return singleTap
}
internal func showcaseTapped(gestureRecognizer: UITapGestureRecognizer) {
let location = gestureRecognizer.locationInView(containerView.superview)
UIView.animateWithDuration(
0.5,
animations: { () -> Void in
self.alpha = 0
}) { (_) -> Void in
self.onAnimationComplete(location)
}
}
private func onAnimationComplete(touchLocation:CGPoint) {
if singleShotId != -1 {
NSUserDefaults.standardUserDefaults().setBool(true, forKey:
String(format:
"iShowcase-%ld", singleShotId))
singleShotId = -1
}
for view in self.containerView.subviews {
view.userInteractionEnabled = true
}
recycleViews()
self.removeFromSuperview()
if let delegate = delegate {
delegate.iShowcaseDismissed?(self, location: touchLocation)
}
}
Thanks.
Bye
2016-07-25 14:34 GMT-04:30 Rahul Iyer [email protected]:
do try now
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIfVNwct6jT1iEngPvSk72qttWzytbDYks5qZQjOgaJpZM4JQ3dX
.
Aileen Moreno < [email protected] >
from ishowcase.
Related Issues (18)
- Custom iShowcase very pixelated! HOT 2
- App crashing on IOS6
- setUserInteractionEnabled NO HOT 1
- Need to add @objc to the TYPE enum for access from Objective C
- Using swift version, cannot change background color HOT 2
- Provide Swift 3 Update For issues
- Cleanup Old Showcase Views HOT 2
- iShowcase detail label text not visible completely and long text gets cut HOT 1
- Long labels are truncated HOT 5
- Cannot access type , radius , singleshotId in objective c.
- Circular type... HOT 1
- Resolve Warnings for Xcode 8.3.2
- Is there a way to use it for more than one view at the same time? HOT 1
- Swift 4
- when app closes and opens again showCase will be shown again and agian! HOT 1
- Showcase not showing
- Next button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ishowcase.