push
// push 动画 渐变过度 CATransition* transition = [CATransition animation]; transition.duration = 0.5; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionFade; [self.navigationController.view.layer addAnimation:transition forKey:nil]; [self.navigationController pushViewController:sort animated:NO]; [sort release]; sort = nil;
pop
CATransition* transition = [CATransition animation]; transition.duration = 0.5; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionFade; [self.navigationController.view.layer addAnimation:transition forKey:nil]; [self.navigationController popViewControllerAnimated:NO];
UIScrollView 滚动视图
1.subviews,其中contentview负责显示内容,在滚动的过程中,通过监听gesture,来改变contentview的offset,显示不同的内容;vertical and horizontal scroll bar是另外的subview,又叫做scroll indicator
2.UITableView和UITextView都是UIScrollView的子类;
3.UIScrollView可以管理现实的内容,通过contentoffset控制显示的内容,
4.UIScrollView可以管理的滚动的操作,
5.UIScrollView可以管理scroll indicator,设置样式、是否显示
6.UIScrollView可以控制contentview的缩放zoom,
alwaysBounceVertical 设置为YES/NO,当拉到顶部底部时是否有弹跳的效果;
decelerationRate 调节拖拽后减速的快慢
pagingEnabled 设置scrollView整屏滚动
常见gesture:swipe滑动、drag托拉、click单击、long click长按、pinch挤压捏(pinch in缩进,pinch out扩大)、
UIScrollViewDelegate委托方法:
Responding to Scrolling and Dragging
– scrollViewDidScroll:
– scrollViewWillBeginDragging:
通知delegate scrollView将要滚动contentView,这时手指按在屏幕上开始拖拽;
– scrollViewWillEndDragging:withVelocity:targetContentOffset:
– scrollViewDidEndDragging:willDecelerate:
通知delegate拖拽的动作结束,这时手指离开了屏幕;decelerate属性控制是立刻停止滚动还是逐渐减速;decelerate属性的值可以通过scrollView来设置;
– scrollViewShouldScrollToTop:
– scrollViewDidScrollToTop:
– scrollViewWillBeginDecelerating:
通知delegate滑动的速度开始减小
– scrollViewDidEndDecelerating:
Managing Zooming
– viewForZoomingInScrollView:
– scrollViewWillBeginZooming:withView:
– scrollViewDidEndZooming:withView:atScale:
– scrollViewDidZoom:
Responding to Scrolling Animations
– scrollViewDidEndScrollingAnimation:
通知delegate scrollView的滑动动画结束
As an Android developer, achieving downloads from the Google play store can feel like an impossible task. With increasing competition, strict policy changes and an already difficult environment to make money, we are always looking for other ways to increase downloads and number of users.
We scoured the web to find the best alternative app marketplaces to market your app. Here are our top 5 choices.
SlideMe
SlideME is unique because they recognize that not everyone can find what they are looking for in one app store. They use an on-device application store that allows users to see apps directed specifically towards their interests, needs, geographical location, and even payment method. According to their website, they are the number 1 alternative Android Application Marketplace for the world. According to crunchbase, SlideMe has over 25,000 unique daily visitors. Your newest users are waiting for you there!
Amazon App store for Android
A few months before Amazon released their Android powered tablet, Kindle Fire, they opened theAmazon App store for Android. It originally opened just for US users, but this summer they expanded to the UK, Germany, France, Italy and Spain. Publishing your app in Amazon will open you up to those users using the Kindle Fire. With the recent announcement of the newest Kindle, this could be a great way to increase your apps reach.
Android Pit
Whether your app is a game, for communications, entertainment, music, news, or any category, it has a home at the Android Pit App store. The team at Android Pit has created a beautifully clean and easily navigable app store. Complete with a 5 star rating scale and an easy to use interface, Android Pit is a great site to use. In addition to the app store, Android Pit is a full scale website with a very nice developer community, wonderful app reviews and informative articles about Android news and industry reports.
App Brain
App Brain makes our list because of its amazing filtering features. Not only are you able to filter by location, you can see which apps are popular amongst different groups of people. There are standard groups like men and women, but also some interesting fields like people in their twenties, older people, and the latest apps reviewed by appbrain. Not only is App Brain a great app store, it’s a fantastic resource for market statistics.
Android Zoom
The last, but certaintly not least app to make our list is AndroidZoom. With over 200,000 followers on facebook and an amazing youtube channel, they feature many different apps in their video reviews. Not only can you see the top 50 most viewed apps on the site, you are able to view theclimbers, apps that are moving up the list, as well as the fallers, the ones headed off the list. These different views give your app many more opportunities to be seen by users, and therefore more likely to be downloaded.