I have AllOrganizacionUIView class, I used UISearchBarDelegate delegate, on workink
class AllOrganizacionUIView: UIView , UISearchBarDelegate {
@IBOutlet var SearchBar: UISearchBar!
var searchActive : Bool = false
func searchBarTextDidBeginEditing(searchBar: UISearchBar) {
searchActive = true;
}
func searchBarTextDidEndEditing(searchBar: UISearchBar) {
searchActive = false;
}
func searchBarCancelButtonClicked(searchBar: UISearchBar) {
searchActive = false;
}
func searchBarSearchButtonClicked(searchBar: UISearchBar) {
searchActive = false;
aa.SearchBar.endEditing(true)
print("hajox")
}
}
I Have use UISearchBarDelegate delegate in ViewController class
class ViewController: UIViewController{
@IBOutlet var SearchBar: UISearchBar!
// not working
func searchBarShouldBeginEditing(searchBar: UISearchBar) -> Bool {
self.CircleImageView_3.image = UIImage(named: "FullCircle")
self.CircleImageView_2.image = UIImage(named: "Circle")
self.CircleImageView_1.image = UIImage(named: "Circle")
self.mMainCategory.hidden = true
self.mAllCategores.hidden = true
self.mAllOrganizations.hidden = false
self.FooterViewController.text = "Основные категории"
return true
}
}
guys, I have some problem with Realm DB.
https://codeshare.io/xxmZd - it`s my test model
https://codeshare.io/kRudQ - it`s my api manager class
https://codeshare.io/HegAw - my ViewController
and these are errors
https://codeshare.io/6wUh3 when I `m trying to save result to DB
Hello, I just joined this group seeking some help in Objective-c code, i am following Stanford Objective c CS193P course, I am stuck at first assignment, in brief -> when i click on card i should get a random card from the deck, i have completed code following classwork but on cliking button i am getting ‘(null)’, i am trying to figure this out but still stuck, can any one help me or can guide me where (which forum/gitter) i can get help. Thanks in advance .
here is the code: https://github.com/iOSJMatharu/Matchismo/tree/master/Card%20Game