带负数( - )和点(。)的数字键盘

时间:2016-06-06 14:12:28

标签: c# ios xamarin xamarin.ios

我已经检查了所有iOS键盘,我无法找到,除了UIKeyboardTypeNumbersAndPunctuation之外,它符合我的需求,但这不是我想要的。

我正在寻找像UIKeyboardTypeNumberPadUIKeyboardTypePhonePad这样的键盘,我可以在其中添加.-,但是可以创建这样的键盘吗?

1 个答案:

答案 0 :(得分:2)

You should create an <?php $taxonomy = 'product_cat'; // Load all the terms for the product category $terms = get_terms( array( 'taxonomy' => $taxonomy, 'hide_empty' => FALSE, ) ); // Put all of the category id's into a simple array for searching $ids = array(); foreach( $terms as $term ) { $ids[] = $term->term_id; } // Load the current term ID from the current query $this_term = get_query_var( 'term' ); // Find the term in the list of ID's $this_position = array_search( $this_term, $ids ); // Identify the previous term $prev_position = $this_position - 1; // Identify the next term $next_position = $this_position + 1; // IF the previous term exists, and is not "off" the list (the currently displayed term is not the first term), then display the link if( $prev_position >=0 ) { $prev_id = array_slice( $ids, $prev_position, 1 ); $prev_term = get_term( $prev_id[0], $taxonomy ); if ( $prev_term ) { echo '<a href="' . get_term_link( $prev_term->term_id, $taxonomy ) . '">&laquo; ' . $prev_term->name . '</a>'; } } // IF the next term exists, and is not "off" the list (the currently displayed term is not the last term), then display the link if( $next_position > 0 && $next_position < count($ids) ) { $next_id = array_slice( $ids, $next_position, 1 ); $next_term = get_term ($next_id[0], $taxonomy ); if ( $next_term ) { echo '<a href="' . get_term_link( $next_term->term_id, $taxonomy ) . '">' . $next_term->name . ' &raquo;</a>'; } } ?> , commonly an UIToolbar with your missing keys (inputAccessoryView and .)