drasto

Slovakia/Czech republic

Age: 28

2d
comment Implementing Set.addSequence in Swift
I agree that this is a bug. Did somebody report it? Thank you
2d
revised Compiler error: Cannot convert the expression's type 'MyType' to type 'MyType'
added 486 characters in body
2d
asked Compiler error: Cannot convert the expression's type 'MyType' to type 'MyType'
2d
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
I can add UIPanGestureRecognizer directly to the UISrollView and disable the default one by setting scrollEnabled = false (or by implementing UIGestureRecognizerDelegate's method shouldReceiveTouch on scroll view and always returning false). Determining how far would high velocity pans scroll is also not the problem. The think is I do not want to loose bouncing and paging - and when contentOffset or visible rect is set on UIScrollView programatically it does not bounce nor it moves to nearest page.
Dec
9
revised Method flashScrollIndicators of UIScrollView not working
edited title
Dec
9
asked Method flashScrollIndicators of UIScrollView not working
Dec
8
awarded Famous Question
Dec
7
awarded Notable Question
Dec
5
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
Well, if it is not possible to replace default pan recognizer in some documented way, I will need to do much more coding, to recreate whe whole dragging and scrolling functionality - something like you suggest. But before that, I will set up a bounty on this question and see what comes out of it. Thanks
Dec
4
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
Thank you but I must disagree. Currently, I am already using the delegate - not method shouldReceiveTouch but rather gestureRecognizerShouldBegin. It does not do what's needed. To accomplish what I need by using just the delegate to filter touches may be possible but very complicated. More importantly - it is hacking the UIPanGestureRecognizer into recognizing different gesture then pan by means of its delegate. Definitelly not the right way. And the delegate is not meat for it, therefore it does not provide enough controll. Its simply not the same gesture, I need different recognizer.
Dec
4
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
@A.R.Younce You may still run into some problems - I remember I did but I do not remember what they were :) If you do try to ask me, I might be able to direct you to the right way.
Dec
4
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
@A.R.Younce If you are interested how I subclassed UIGestureRecognizer: add import UIKit.UIGestureRecognizerSubclass
Dec
4
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
@A.R.Younce Feel free to write it in Objective-C. I have found a way how to subclass UIGestureRecogniser. It has one drawback though with which I can live - so feel free to post in Objective-C I can adapt that code to Swift.
Dec
4
revised Use custom gesture recognizer to trigger scrolling of UIScrollView
deleted 4 characters in body
Dec
4
comment Use custom gesture recognizer to trigger scrolling of UIScrollView
@A.R.Younce I am using Swift. But everything that is possible with with Objective-C should be possible with Swift, right?
Dec
4
asked Use custom gesture recognizer to trigger scrolling of UIScrollView
Dec
2
comment How to get size of default keyboard for current device without it being displayed?
In viewDidLoad the size is 0,0, so it is in viewWillAppear. But again - I want to use the size in the compation app not in the extenssion itself. In the app, the keyboard will never show, what does it help me if get the size once it is shown??
Dec
1
asked How to get size of default keyboard for current device without it being displayed?
Dec
1
accepted Is it possible to overload "?" operator?
Dec
1
asked Is it possible to overload "?" operator?
1 2 3 4 5