Tagged Questions
This tag should be used only on questions that are about Objective-C features or depends on code in the language. The tags "cocoa" and "cocoa-touch" should be used to ask about Apple's frameworks or classes. Use the related "iOS" and "OS X" for issues specific to those platforms.
0
votes
1answer
30 views
How to reference/open a window in Objective-c
I need to get a reference to the single window in my app. If I tick off "Visible at launch" it shows up.
I keep seeing code like the following but that doesn't make much sense. How would self know ...
0
votes
0answers
5 views
Error when adding Supplementary Header View to UICollectionView
I am getting the following error implementing the supplementary Header View
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no ...
0
votes
1answer
29 views
Identifying iDevices in compile time, best practices
I usually declare the rects & colours in static const format in my view controllers like this for example. (these are compile time)
#import "something.h"
static const CGRect someRect = { w, x, ...
0
votes
1answer
17 views
UIManagedDocument initWithURL blows with NSArray error
I am completely flummoxed. This code:
NSFileManager *fileManager=[NSFileManager defaultManager];
NSURL *documentURL=[fileManager URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask ...
-4
votes
2answers
22 views
Xcode compilation warning [on hold]
Can somebody help me with this warning? Thanks!
{
//NSLog(@"handleLeftSwipeFrom received: %d", recognizer.direction);
NSDictionary* dict; // !3. Initialize the variable "dict" to silence ...
0
votes
1answer
19 views
UIImagePickerController interfaceOrientation always come up as portrit
I am trying to capture the current orientation of the UIImagePickerController being presented, and changing the overlay view's hidden property accordingly.
if([notification.name ...
0
votes
1answer
23 views
sending iPhone UUID over SMS and Email
I'm planning on sending a user's UUID to other users of my app using SMS or Email. I'm assuming that the user's UUID is a relatively sensitive piece of information, so it makes sense to encrypt it? If ...
0
votes
3answers
46 views
Find NSDate in sorted NSArray
I have a sorted array of NSDate objects. What I'd like to do is create a method that takes in a date and returns YES or NO depending on whether that date can be found in the date array.
NSArray ...
-1
votes
1answer
24 views
Expected selectory for Objective-C method in file CAMediaTiming.h [on hold]
I have been building an iPad app, and all of a sudden I get an, namely Expected selector for Objective-C method and Expected method body.
it's in the file CAMediaTiming.h, which is part of the ...
1
vote
0answers
12 views
Start multiple NSTask with root privilege asking for password only once
I would like to start a lot of NSTasks that require root privilege, I found that I should use Apple's Authorization Kit and I found STPrivilegedTask, which is designed for that.
The thing is, when I ...
1
vote
1answer
37 views
View Controller call method on Sub View
I have a View Controller that has a UIButton in it. I have a UIView in that View Controller that accepts signatures. There is a .h and .m file associated with the UIView. The UIView's .m file has an ...
2
votes
1answer
9 views
Prevent editing of text in UITextField and hide cursor/caret/magnifying glass while using an inputView
How do I prevent the editing of text in a UITextField along with hiding the cursor/caret/magnifying glass, but still present the keyboard, as I am using an inputView with a ...
2
votes
0answers
18 views
Creating a AVAsset with a HTTP NSURL
I'm trying to merge two NSURLs that contain video references. One of the urls point to a video on AWS and the other points to a video that is stored locally. My exporting code works because I've tried ...
1
vote
0answers
10 views
Display an overlay window (HUD) without recording it
I'm working on a screen recording app. I want to display a HUD that provides information to the user. I know how to go about setting that up with the window levels as described at How to create a HUD ...
1
vote
1answer
16 views
Updating UILabel in Child View 1 after Global Variable Update in Child View 2
I have made a simple app to test this and cannot figure it out. I have an iPad storyboard where I have put two container views as shown below. I have a label in one view and a button in another. My ...