Post

Replies

Boosts

Views

Activity

Filter all notifications
I would like to built an app in setting pane where the user could add some filter on incoming notification (app, word or sentence inside or not...etc) and then assgn an action to this. Is there a way to minitor every incoming notification? Like an always on invisible app or something in the background? And then is it possible to assign an action or at least a shortcut to execute (set by user in setting)...? Thanks!
5
0
1.3k
Jan ’23
shortcuts adress with wrong character
Hi, I have a shortcuts that check the actual position and save the adress inside a dropbox .txt file. It load this adress on the next run to compare to actual position... It works well, exept that sometimes it gives me an error and its due to the spelling inside the file. The adresse looks like: MontrÅ©al and it supposed to be Montréal. Why ? I takes the adresse and turn it into text before to save to prevent that...any idea how to solve that? Thanks!
7
0
678
Sep ’21
Keyboardwasshown issue
Hi, I have an issue when trying to scroll the keyboard to not hiding the textfield. I have low height and normal height textfield , low height are ´name’ and the normal are numbers.. so if I select number , I need to scroll only the textfield height but if I select a name, I need to scroll the low height + normal height to be able to see the name and the number field. So I store a variable (self.cheatheight) that is set to 0 if normal height or to 35 if low height. I set it on textFieldShouldStartEditing using textField tag. I test and I see that the variable is set to the right value, but the keyboard only scroll like the value never changed! If I click on a texField, it scroll right the first time but if I select another texField directly it will scroll with same value even if I select another size textField! If I tap anywhere or tap return key, keyboard dissmiss and then it ll be ok for the first selection or if I select the same textField height.... If someone have an idea of what it could be it would be nice, I don’t know where to look anymore ! Here my keyboardwasshown code! - (void)keyboardWasShown:(NSNotification *)aNotification { [UIView animateWithDuration:.3 animations:^(void) { NSDictionary* info = [aNotification userInfo]; CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, (kbSize.height+ self.cheatheight), 0.0); self.table.contentInset = contentInsets; self.table.scrollIndicatorInsets = contentInsets; }]; }
0
0
358
May ’20
textFieldShouldBeginEditing only play once when skip from one textfield to another directly
Hi, I store a value to be able to use it in the keyboard scroll to unhide the textfield. My table have low cell, hight cell, low cell, high cell etc...So if I select a large cell I just need to unhide it from keyboard but if I select the small one I need to unhide the large cell too that is right after it. So in the textFieldShouldBeginEditing I check the tag of the cell and store a cheat value (0 if large cell and large cell height if small cell). Then I can add footer with the keyboard height + cheat value. Its work fine but only the first time! If I select a large cell it scroll its value but if I select a small cell without dissmiss keyboard, it still scroll the large cell value. If I select small cell first it scroll the small cell and the large one correctly but if I select directly another cell, the small one will work but large one scroll to much...Its like the method only run once at the begining. Why it wont when I select directly another textfield? If it work after dississing keyboard, it should be well implemented...? Is there another way to proceed? I also tried right inside the keyboardshown but still only work once...So the keyboard is not dissmiss unless I click outside a textfield or tap return key...I tought the shouldbeginediting method was triggered every time a textfield was about to begin editing...Thanks!
0
0
344
Apr ’20
textfield cursor missing and keyboard scroll problem when select textfield from textfield
I have a UITableView with UITextField. When I edit and exit those textField one by one, everything is fine (cursor, keyboard, scroll to unhide field from keyboard etc). But if I select another textField while editing one, I got no cursor and keyboard scroll simply not there... but I can edit text normally.. its like it s half activated... I tried to force resign but no results! What do you think? Thanks!Ps: I declared all delegate for tableview and textfield
11
0
5.3k
Apr ’20