当前的iOS LinkedIn应用程序的UITabBar会在选择时填充UITabBarItem图像。填充UITabBarItem图像是动画的。如何使用Swift复制该动画?
最初未选中时,图像只有一个没有填充的轮廓。在选择时,图像从中间(动画)填充,颜色导致填充图像。
答案 0 :(得分:0)
我认为您可以使用try {
try (Connection myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/club", user, password)) {
System.out.println("Connection Successful ");
// Create statement.
Statement myStmt = myConn.createStatement();
ResultSet myRs = myStmt.executeQuery("SELECT COUNT(*) "
+ "FROM members "
+ "WHERE MemType = 'Active '");
if (myRs.next()) {
CountRel.setText(Integer.toString(myRs.getInt(1)));
} else {
throw new Exception("error while counting");
}
}
} catch (Exception e) {
}
' UIImageView
以及highlightedAnimationImages
如果您不想拥有多个图像而不是只有1个图像,则可以将UIImageView子类化,并在突出显示时为其他彩色蒙版图层设置动画。
您还可以查找Lottie等框架以使用动画