Hi,
I built the iTahDoodle app using xcode7 Beta. Couple of issues i encountered
- If i copy code as-is, the app throws error
"Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Application windows are expected to have a root view controller at the end of application launch’"
i googled and was able to overcome this issue by adding following line of code (highlighted) :
CGRect winFrame = [[UIScreen mainScreen] bounds];
UIWindow *theWindow = [[UIWindow alloc] initWithFrame];
self.window = theWindow;
self.window.rootViewController = [[UIViewController alloc] init];
… - After the step 1 update app runs fine but when ever i click on the “Insert” button, NOTHING happens. I googled and tried to put the
…
self.insertButton.enabled = YES;
…
but this did not help me either.
Can anyone tell me if this is the issue with xcode 7 beta or do i need to add few more lines of code. Quick response will be much appreciated.
P.S. The keyboard soft or hard was not working as well, so had to add code below, (ie) becomeFirstResponder to atleast start typing in the textbox or else it was behaving like readonly
self.taskField = [[UITextField alloc] initWithFrame:fieldFrame];
self.taskField.borderStyle = UITextBorderStyleRoundedRect;
self.taskField.placeholder = @“Type a task, tap insert”;
[self.taskField becomeFirstResponder];
Thanks!