miércoles, 20 de febrero de 2013
lunes, 18 de febrero de 2013
martes, 12 de febrero de 2013
Hidding a numeric keyboard in IOS
With the standart keyboard we have a "Done" button, so once the user click over this "Done" button the action "Did en on exit" is called. Then we can use the following piece of code to close the keyboard just when the users touch over this "Done" button:
[self.theEditOutlet resignFirstResponder ]
But with the other numerical types of keyboardas this button doesn´t exist. In this case we could add a toollbar including a custom "Done" button, or more easilly using the method "touchesBegan".
This method must be implemented in the .m ViewController file and must be as follows:
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self.theEditOutlet resignFirstresponder ]
}
[self.theEditOutlet resignFirstResponder ]
But with the other numerical types of keyboardas this button doesn´t exist. In this case we could add a toollbar including a custom "Done" button, or more easilly using the method "touchesBegan".
This method must be implemented in the .m ViewController file and must be as follows:
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[self.theEditOutlet resignFirstresponder ]
}
sábado, 9 de febrero de 2013
miércoles, 6 de febrero de 2013
windows are expected to have a root view controller at the end of application launch
windows are expected to have a root view controller at the end of application launch
This is a warning that the compiler shows, so the application works. It is caused because you have added a subview to a view without declaring the root View Controller first. To fix it you must replace:
[windows addSubview:self.aViewController.view];
for:
[windows setRootViewController:self.aViewController];
lunes, 4 de febrero de 2013
and the spring suddenly appears..
Place/Lugar: The Valley, Granada, Spain.
Bike/Bici: Orbea Onix Di2
Last days of January, nice and warm ridding day with my old mate the Orbea Onix. As an oasis in the desert we have at least two nice days without rain and/or cold temperatures. Today the temperature in Granada at the starting point was about 8ºC, a few kilometers later, just in the valley the temperature increases to an unbelievable 18º. A 10º increase in only 20km. Nice picture with an almond tree in bloom and with the pike of El Caballo at the background.
Suscribirse a:
Entradas (Atom)