Hi Josh, the method setdetailLabelContents is not visible in MasterTableViewController.I imported DetailViewController.h and it didn't appear. What can I do ? thanks !
Hi Config, Not sure what is causing that to do this, as it should work just fine, I can provide you access to the source code which is located on Github, so feel free to download or fork a copy of it. github.com/Josh-Bruce/SearchMe
First you need to create the plist file and fill it in with the contents you want. Then to get the file you use this and change the URLForResoure to the name of your file. NSURL *file = [[NSBundle mainBundle] URLForResource:@"myplist" withExtension:@"plist"]; Then here we are getting a dictionary of of the plist NSDictionary *plistContent = [NSDictionary dictionaryWithContentsOfURL:file] You can then use the dictionary to get the count and the object at index etc. Hope this helps :)
Very clear and straight forward. Going to the next video...
Very nice, clean, clear and up to date. Thank You.
Seriously excellent tutorial Josh.
Thanks Josh, very helpful!
Thank you so much! Amazing tutorial!!
Grate tutorial bruce!!!! Thanks a lot
thanks bruce!!
מדהים!
Nice tutorial!
Great job, thanks !
Thank you!
its very useful, tks !!!
great
Hi Josh,
the method setdetailLabelContents is not visible in MasterTableViewController.I imported DetailViewController.h and it didn't appear. What can I do ? thanks !
Hi Config, Not sure what is causing that to do this, as it should work just fine, I can provide you access to the source code which is located on Github, so feel free to download or fork a copy of it. github.com/Josh-Bruce/SearchMe
Josh Bruce Thank you Josh. I succeeded to do it .
Is there something wrong with synthesize??
Don't use synthesise anymore unless you override the getter and setter methods :)
Josh Bruce Too much code not using it!
Helo!!!!
How can I use a plist to populate the array?
Thanks!
You could use a plist to populate an array of data, but don't store too much data in your plist files :)
Josh Bruce Thanks Bruce, but I need to know, how can I use the plist to populate the arras in the your example project. Thanks.
First you need to create the plist file and fill it in with the contents you want.
Then to get the file you use this and change the URLForResoure to the name of your file.
NSURL *file = [[NSBundle mainBundle] URLForResource:@"myplist" withExtension:@"plist"];
Then here we are getting a dictionary of of the plist
NSDictionary *plistContent = [NSDictionary dictionaryWithContentsOfURL:file]
You can then use the dictionary to get the count and the object at index etc. Hope this helps :)
Josh Bruce Thanks so much!
How can I add a subtitle in the rows too? :)
You can use the cells detailTextLabel and then make sure that the cells style is also set to detail in the attributes inspector :)
Would you please upload the source code for use? please~
+이동현 github.com/Josh-Bruce/SearchMe
Thank you so much!!!