我有一个UIScrollView(带分页),我添加了三个UIViews.这些UIViews中的每一个都有一个UITableView.因此,用户应该能够水平滚动到他想要的页面,然后在相应的表格中垂直滚动.
但是,某些表不接收滚动手势.通常第一个表现良好,但其他表现不好.我无法选择单元格,也无法向上或向下滚动表格.
我使用了UIScrollView的默认设置,除了viewDidLoad中定义的这些设置:
- (void)viewDidLoad
{
[super viewDidLoad];
//Load the view controllers
[self loadViewControllers];
//Configure the scroll view
self.scrollView.pagingEnabled = YES;
self.scrollView.contentSize = CGSizeMake(CGRectGetWidth(self.scrollView.frame) * viewControllers.count, CGRectGetHeight(self.scrollView.frame));
self.scrollView.showsHorizontalScrollIndicator = NO;
self.scrollView.showsVerticalScrollIndicator = NO;
self.scrollView.scrollsToTop = NO;
self.scrollView.delegate = self;
//Configure the page control
self.pageControl.numberOfPages = viewControllers.count;
self.pageControl.currentPage = 0;
}
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚为什么我不能滚动一些表...任何帮助将不胜感激.
提前致谢!
我一直在使用Picasso很长一段时间,但是我必须将OkHttp库升级到2.0.0,因此我必须将Picasso升级到版本2.3.2.
但是,现在Picasso根本不加载任何图像,图像视图留空.任何时候都没有出现任何错误,但是当我改变Picasso登录时,"Hunter"似乎已经被派遣并开始执行,但从未完成.
所有图像都可访问且相当小(约200px×100px).
我正在通过毕加索的"典型"方法加载图像:
Picasso.with(context).load(url).error(R.drawable.errorimg).into(imageView);
Run Code Online (Sandbox Code Playgroud)
但是,errorimg从未显示过.
我能做错什么?
编辑:
这是Picasso不工作的地方之一的代码(PlaceListAdapter.java - getView函数)
public View getView(int position, View convertView, ViewGroup parent)
{
final PBNPlace ev = values.get(position);
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.places_list_item, parent, false);
TextView titleView = (TextView)rowView.findViewById(R.id.place_title);
ImageView placeImage = (ImageView)rowView.findViewById(R.id.place_image);
Picasso picasso = Picasso.with(context);
picasso.load(ev.imageURL).error(R.drawable.chat).into(placeImage);
titleView.setText(ev.name);
return rowView;
}
Run Code Online (Sandbox Code Playgroud) 我在iOS中使用AddThis来共享图像.虽然其他一切工作(Twitter,电子邮件等),但当我尝试与Facebook共享图像时,应用程序崩溃了.我根据需要设置了FB密钥和密码,但经过一些调试后,出现了错误:
[FBRequest initWithSession:graphPath:]: unrecognized selector sent to instance 0x268b10
Run Code Online (Sandbox Code Playgroud)
关于如何解决这个问题的任何想法?
提前致谢!