Data cannot be presented on tableview(iOS Dev), what's wrong? - ios

I'm an iOS developer from scratch. Currently, I'm learning something about a tableview and getting stuck here. Granted, it's a quite rudimentary issue. But I cannot work it out!
The ideal situation should be a table with the first line of a label and a checkmark. I swear I have followed the tutorial with every step but the table in the simulator was somehow blank. There must be some subtle mistakes. I'm really confused. Now, my operation is fully captured and is enabled in the link. If someone could analyze my operation and point out my mistake I would be gratitude.
hit this link to see my operation from YouTube
hit this link to see my operation from my Google Photos

I noticed in your video you named your custom class as ChecklistViewController, but the Module is none. I don't know why it becomes none because in my project it is Current - Checklists aka your current target. Would you try to click the blue arrow on the left and then, choose the right module. This question may be also helpful.

Related

Google Sheets add-on with custom functions not running

I have written an add-on for Google Sheets that contains some custom functions. This has been working fine for months, but suddenly today it started have problems for some spreadsheets. The problem we're seeing is that the custom functions are not running at all, they just show Loading... forever.
I've done a lot of we searching, but none of the suggestions have helped in this case. I've also tried a lot of investigation and the most notable point I've found is that it seems these functions are not running at all. I'm determining that by looking at the Apps Script Execution Logs. For the cases when the functions works I see these custom functions in the log as Completed, but for the cases when it does not there is no log entry at all (no error or anything).
I should clarify that the problem seems to be spreadsheet related. That is, the functions work fine in some spreadsheet, but don't work in others. Also, my add on exposes multiple custom functions, and when this problem is happening it happens for all of the functions.
Furthermore, I've seen that this problem sometimes happens in a freshly created empty spreadsheet, but other times it is fine.
As I mentioned above, everything has been working fine for months, so I don't think it is a bug with my functions.
Is anyone else seeing problems like this? Does anyone have suggestions on how to investigate further? Any other ideas?
You may want to star issue 222342097 in the issue tracker. Click the star icon ☆ in the top left-hand corner to vote for fixing the issue and get notified of status changes. Please do not post a "me too" or "+1" reply, but just click the star icon. Google prioritizes issues with the most stars.

First Person Map View in iOS

I am currently developing an iOS app using Objective-C and I came across with a requirement from my client that I am unsure and unaware if it can be made.
The app that I am working with is Map based using the geolocalization of the user at all times. To do so, as I am sure you all know, I am using the MapKit.framework that Apple gives us pre-built.
My doubt came when my client asked me if it’s possible to use the First Person Maps View instead of the traditional 2D Map. To make my question clear to you, what I was exactly asked if there is any chance to use the same view of the GPS navigation in the app (See picture below). Is there any way to do so? If so, could you give me some guides to achive that?
Any help would be appreciate it!
After some hours of research I've found a way to do so. The key property is initialized trough:
MKMapCamera *mapCamera = [MKMapCamera cameraLookingAtCenterCoordinate:ground fromEyeCoordinate:eye eyeAltitude:50];
Take a look at this tutorial if you are need of an explanation step by step:
http://nscookbook.com/2013/10/ios-programming-recipe-30-using-3d-mapping/

Swift - SPGooglePlacesAutocomplete - how to deal with it?

My research showed that the only proper way to have an autocompletion search bar which retrieves coordinates is to use SPGooglePlacesAutoComplete.
However, here https://github.com/spoletto/SPGooglePlacesAutocomplete are only installation hints along with bridging from obj-c to swift. But actually, I cannot find anywhere how to handle it in swift. How to connect search bar outlet, how to connect it to existing project with map etc.
Does anybody know some neat tutorial which makes handling this library in swift clear? If no such thing around the web, could anybody post here, as an answer, short tutorial how to deal with SPGooglePlacesAutocomplete, how to connect outlets, retrieve coordinates, how to pair it with search bar etc. I would be very grateful
Thanks in advance!
as the person who maintains https://github.com/chenyuan/SPGooglePlacesAutocomplete (in a very inactive way), I have received several inquires about supporting Swift. I'm planning to migrate this repo to Swift, however with a full-time job and 2 kids, I can't promise a specific timeline.
Meanwhile, would you be able to follow the solutions provided in this issue: https://github.com/chenyuan/SPGooglePlacesAutocomplete/issues/15

Vuforia: UserDefinedTargets is better than ImageTargets database?

I'm experimenting with Vuforia. It's going pretty well so far.
Previously I've had the ImageTarget demo working with my own targets, so I know I can get this to work for my own purposes. I also realise targets should have a good "star rating" so that Vuforia can successfully track them.
However, the following experiment is confusing me:
I create my own target database using the Target Manager, with one target, which shows up as ZERO star rating. I know Vuforia likes high star ratings, but bear with me. As I expected the ImageTargets app does not seem to recognize my target image. No surprises there really given the ZERO star rating.
However, if instead I run the UserDefinedTargets demo and I take a "live" image of the same target, Vuforia is perfectly able to track the target !
Can anyone explain why this might be the case and how I can fix the problem?
Ideally, I would like to use ImageTargets as this allows me to load in databases as I please.
Alternatively, I would like to be able to store a database captured within the UserDefinedTargets app which I can reuse at a later stage.
Overall, I'd like to know why using the Target Manager doesn't work, but using the UserDefinedTarget app does work, and how I might be able to fix the problem.
Rather than add this to the question, which is already quite lengthy, I thought it better to put it as an answer, although I'm open to other comments and answers!
I think the UserDefinedTarget app may recognize the images "better" because directly after the user defined target image is taken, the camera (i.e. mobile phone) is in the correct position already. This does not, however, explain the excellent "re-recognition" rate, i.e. if the camera is moved away from the target and then brought back over the target, the UserDefinedTargets app recognizes the target instantly every time.
Hmmm...

emailing contents of text fields advice needed xcode

when trying to email contents from text fields im having exceptions thrown. I think im wiring them up wrong.
Im creating outlets for my text fields in .h, setting up my email button as an action.
In .m im implementing usual code for sending email. Ui message frame kit has been imported.
Now I need some help as thats not working for me.
To summarise: How do i email whats in my text boxes?
Im using xcode 4.3 with storyboards
Thanks
There are no tricks to emailing the contents of text boxes. You need help with some exception, you need to provide us the precise error and show us the relevant code. If you want to try to solve it on your own, you should debug the code, single stepping through the method that attempts to email the contents of your text boxes (see Xcode 4 User Guide: Debugging and Analyzing Your Code; see the section about adding breakpoints and then the section about controlling execution).
Exceptions are generally the result of memory management problems (e.g. your code is trying to use some object that has already been released) so you might want to enable zombies if you haven't already. I also think that people do not sufficiently appreciate the value of Xcode's Analyze command on the Product menu (described in the aforementioned Analyzing Your Code section). This Analyze command will identify not only dangling pointers, but also some memory leaks. It's not perfect, but it's a good start.
People really shouldn't be posting questions here if they haven't first resolved the problems raised by Analyze (unless, of course, you need help fixing issues that Analyze raises). Personally, when I went through this Analyze exercise on my first big project, it was painful to clean up all the issues that it identified, but, more importantly, I suddenly "got it". I've been an IT professional for decades, have programmed in dozens (literally) of programming languages, but only after going through this painful exercise did I finally get the subtleties of Objective C memory management. Suddenly, rereading Apple's Advanced Memory Management Programming Guide, it all made perfect sense.
So, if you're still stymied, and the Analyze command did not identify any issues, and you ran the code through the debugger you were not able to identify why the exception was generated, then just provide us a detailed error message and show us the relevant code and I'm sure we'd be happy to help.

Resources