visual-glitch

UITableView reloadRowsAtIndexPaths graphical glitch

谁都会走 提交于 2019-12-01 00:09:42
问题 If I call reloadRowsAtIndexPaths for the first cell of a section, with previous section empty and the one above not-empty, I get a strange animation glitch (even if I specify "UITableViewRowAnimationNone") where the reloaded cell slides down from the above section.. I tried to simplify the example as much as possible: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 3; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if

iPhone Custom UISlider preload and rounded edges issues

爱⌒轻易说出口 提交于 2019-11-30 16:07:57
I'm trying to implement a custom UISlider, I've extended it with a class called UISliderCustom which has the following code: @implementation UISliderCustom - (id)initWithCoder:(NSCoder *)aDecoder{ if(self == [super initWithCoder:aDecoder]){ self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, 200, 13); UIImage *slideMin = [[UIImage imageNamed:@"slideMinimum.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 0)]; UIImage *slideMax = [[UIImage imageNamed:@"slideMaximum.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 0)]; [self setThumbImage:[UIImage imageNamed:@

iPhone Custom UISlider preload and rounded edges issues

。_饼干妹妹 提交于 2019-11-29 23:07:53
问题 I'm trying to implement a custom UISlider, I've extended it with a class called UISliderCustom which has the following code: @implementation UISliderCustom - (id)initWithCoder:(NSCoder *)aDecoder{ if(self == [super initWithCoder:aDecoder]){ self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, 200, 13); UIImage *slideMin = [[UIImage imageNamed:@"slideMinimum.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 0)]; UIImage *slideMax = [[UIImage imageNamed:@"slideMaximum.png

Prevent Splash Screen from showing after returning from background

天涯浪子 提交于 2019-11-29 03:45:25
I've noticed something that happens in every app i develop. It's usually not a concern but in this specific app it would be great if i could "fix" it, if it's even a bug. Steps to re-produce the issue: Start app , splash screen shows for approx. 3 seconds and app starts. Press home button, app goes to background. Bring app back from background (double clicking home screen and chosing it), shows the splash for half a second or so, and then the app goes back up . Is it possible to get rid of that splash screen popping up for half a second on the way back from background? Its really a problem for

Spinner graphical bug API 21

天涯浪子 提交于 2019-11-28 04:01:38
问题 I have one spinner in a fragment that have a very annoying graphical glitch. This occurs only on my Nexus 5 with API 21. I have try to set spinner.setLayerType(View.LAYER_TYPE_SOFTWARE, null) but the glitch is still present. Any ideas? 回答1: I managed to work around this bug in two different ways: Set a style to your spinner: <Spinner android:background="@drawable/background" android:id="@+id/spinner" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android