Posts

objective c - How to make my keyboard loads with out network access iOS -

objective c - How to make my keyboard loads with out network access iOS - i've developed custom keyboard ios 8 , submitted review in app store 7 days ago. but today rejected app , said that's because app not work without network access , against guideline 25.5 but i've tried every other keyboard available on app store, , non of them loads out granting "allow total access". i've done every thing can imagine, non of them made keyboard (or other keyboard available on app store) loads out granting "allow total access". i created new project, , add together keyboard extension , tried run it, again, simple project (which did not add together line of code) did not load keyboard out granting "allow total access". so if 1 had similar problem, should do, create app loads keyboard out granting "allow total access". ios objective-c xcode swift keyboard

javascript - How can I toggle show/hide all images instead of just hiding? -

javascript - How can I toggle show/hide all images instead of just hiding? - i have button set hide images (under class user_upload) hides instead of toggling hide , show. how can alter code toggles? function hidei(id) { $('.user_upload').hide(); thanks! :-) try this: function hidei(id) { $('.user_upload').toggle(); javascript jquery html css hide

haskell - Why does foldr use a helper function? -

haskell - Why does foldr use a helper function? - in explaining foldr haskell newbies, canonical definition is foldr :: (a -> b -> b) -> b -> [a] -> b foldr _ z [] = z foldr f z (x:xs) = f x (foldr f z xs) but in ghc.base, foldr defined as foldr k z = go go [] = z go (y:ys) = y `k` go ys it seems definition optimization speed, don't see why using helper function go create faster. source comments (see here) mention inlining, don't see how definition improve inlining. i can add together of import details ghc's optimization system. the naive definition of foldr passes around function. there's inherent overhead in calling function - when function isn't known @ compile time. it'd nice able inline definition of function if it's known @ compile time. there tricks available perform inlining in ghc - , illustration of them. first, foldr needs inlined (i...

javascript - How to change z-index only this id elements? -

javascript - How to change z-index only this id elements? - how alter z-index id elements ? when utilize code ,all id in page alter z-index. i want alter z-index id = link-box , love-box , love-box_inner how can ? document.getelementbyid("link-box").style.zindex="99999"; document.getelementbyid("love-box").style.zindex="99999"; document.getelementbyid("love-box_inner").style.zindex="999999"; my guess 3 elements, #link-box , #love-box , love-box_inner have default position of static , , result, z-index , though set, has no effect. in addition, need set position: relative on 3 relevant elements. javascript jquery css

ios - Black screen on the simulator when do back in navigation bar after using search Bar -

ios - Black screen on the simulator when do back in navigation bar after using search Bar - let's have 2 uiviewcontrollers: home , detail. home tableviewcontroller searchbar @ top. when search, , accede detail viewcontroller, works fine. but, when in navigation bar homecoming home viewcontroller, black screen showed. (neither initial table nor table resulted search !). any adea how resolve ? in advance ! i found ! to detail view, asked segue twice ! removed wrong 1 , works ! ios uitableview uisearchbar

javascript - jquery and ajax file uploader won't work -

javascript - jquery and ajax file uploader won't work - i seek follow sample code of jquery , ajax file uploader i've got error. cannot figure out error because when press submit button, nil happens. please help me error. the controller: <?php class upload extends ci_controller { public function __construct() { parent::__construct(); $this->load->model('files_model'); $this->load->database(); $this->load->helper('url'); } public function index() { $this->load->view('upload'); } public function upload_file() { $status = ""; $msg = ""; $file_element_name = 'userfile'; if (empty($_post['title'])) { $status = "error"; $msg = "please come in title"; } if ($status != "error") { $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'gif|jpg|png|doc|txt'; $config['max_size'] = 1024 * 8; $config['...

html - Add number from divs with jQuery -

html - Add number from divs with jQuery - i have these divs. <div class="prices">11.99</div> <div class="prices">1.99</div> <div id="price">99</div> how can add together numbers divs? the final result must 11.99+1.99+99=112.98 thank you. you can this. class="snippet-code-js lang-js prettyprint-override"> var controls = $("div"); var sum = 0; (var = 0; < controls.length; i++) { var ct = parsefloat($(controls[i]).text()); sum += ct; } alert(sum); class="snippet-code-html lang-html prettyprint-override"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="prices">11.99</div> <div class="prices">1.99</div> <div id="price">99</div> jquery html add