It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am trying to pass a simple integer of type int to a void method which looks like this:
-(void)deleteGroup{
I know I should do something like:
[self deleteGroup withInt: 3];
But I can't seem to figure out the correct solution
You need to change
-(void)deleteGroupWithInteger:(NSInteger)intValue{
Then use
[self deleteGroupWithInteger:3];
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was wondering how do you set a textfields text in XCode Objective - C.
[myTextField setStringValue: #"a string or an NSString object"];
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How to create Custom View like this
take a look at GCRetractableSectionController. Maybe it can handle the behavior you need, just check out the example project provided with it.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
In Obj-c/iOS would it be best to store seconds as an int or a NSNumber? unfortunately I'm not able to use NSTime, as I'm storing it on a server, and they don't do NSTime.
Thanks for any advice.
I don't think it really matters so for simplicity I'd say an int just because it doesn't need to be initialized.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
So I have multiple timers going on at a given time, is there any way to say,
if (randomTimer isGoingOnAtTheSameTimeAs randomTimer2)
[self doSomethingAwesome];
any responses would be greatly appreciated!
if ([randomTimer isValid] && [randomTimer2 isValid]) {
[self doSomethingAwesome];
}
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am having a string like: funcname("data"),comes from upstairs.now i want to save the funcname, data in two NSString variables i.e i need to find the string present in between "" and the string before'('.
There's a very useful class NSScanner that will help you to parse different tokens easily.