I have a method hideButton
-(void) hideButton:(UIButton) *button {
[button setHidden:YES];
}
and I get a "can not use an object as parameter to a method" error.
I want to be able to give the button as a parameter to the method when calling this
[self performSelector:@selector(hideButton:smallestMonster1)
withObject:nil afterDelay:1...
I am currently develop iphone app.
the type of the app is Tab Bar. so i heave 4 tabs that in each tab i have different view.
(each view have controller for itself)
now in the first view i am loading data from the net and when it finished i want automaticly to jump to the second tab controller(to show the result).
but u cant find the wa...
Hi all,
I'm developing an app that should have the following properties regarding the audio:
can record and play sound at the same time
can mix the audio output with other app, e.g. iPod
audio output at speaker when earphone is not plugged in
audio output at earphone when it is plugged in
I used the following code.
AVAudioSession *...
Hello all.
I have a paginating scrollview with UIImageView's inside.
At a point i need to remove some Imageviews to avoid memory-problems.
But at any point i just get a BAD_ACCESS .
for(UIView *subview in [scrollView subviews]) {
if([subview isKindOfClass:[UIImageView class]]) {
if ( ([subview tag] != ActualPage) && ([subview ta...
I'd like to see if two NSDate instances are on the same day.
Using...
[date1 compare:date2]
...compares them at the hour, minute, and second level.
Is there a cheap way to make the comparison using built-in calls without using things like NSCalendar and NSDateComponents?
...
I have tab bar application and when i press on one of the tabs the ViewDidLoad called
now if i moving to another tab and then return to the previous one the VewDidLoad didnt call
how can i know that this window load again?
and also how can i refresh a view? for example a viewtable that i made logic changes and want to refresh the new da...
Hi all, I'm stuck and don't know what to do. The apple docs don't seem to cover this very well.
My code:
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person{
NSDictionary *info = [self selectedProjectInfo];
ABAddressBookRef addressBook = ABA...
I have a splitViewController and I would like to add a couple of buttons to the navigation bar for certain details views - is this possible? Looking at the API I only see a leftNavbarItem and a rightNavBarItem.
...
I would like to allow my users to see other users data. I am thinking in terms of a game. I would like the users game on their phone to connect to an online score list , and store the lowest score on the list. Then if the user scores above, their score gets put into the list and stored.
What does this involve exactly?
Will this need e...
Hello, I was wondering what is the biggest image size I can use as background in a UIVIEW.
I have an image of size 320 by 1700 which is scrollable and was wondering if this is going to be an issue loading it to the heap mem.
Cheers.
...
I'm having a strange problem when sending UDP packets from an iPhone over a 3G. Almost every time my application starts after a longer period of network inactivity (for instance after the phone comes from the sleep mode or it just gets a 3G connection), my application is not able to send any UDP packets. I get a kCFSocketError error stat...
I'm diving into iOS development and am building a game that has multiple game types. When the user selects which game type they want to play, they are presented with a game configuration screen where they can adjust their options for how the game will play. Since there are two different game types, there will be two different configura...
I want that something like this:
[myObject selectorNotDefined];
will cause a warning. Is there an option to make this happen?
To be more specific, when I add this code to my existing project:
NSObject *myObject = [[NSObject alloc] init];
[myObject selectorNotDefined];
The compiler will not invoke any warning.
If I create a new pr...
I have this code in my applicationDidFinishLaunching:
navController.toolbarHidden = NO;
[navController toolbar].tintColor = [UIColor darkGrayColor];
[[navController toolbar] setFrame:CGRectMake(0.0,0.0,320.0,180.0)];
The first two lines definitely have an effect on the UI. For example, if I set toolbarHidden to YES, it is certainly h...
I read Audio File Stream Service Reference. It says that when it gets some data it will invoke the callback function. The callback function can play the data, WRITE it to a file...
I would like to know that how can I write the file in the callback function.
Thanks
...
In iOS4, I want to use MPMoviePlayerController. I have a UIViewController that I pass to a custom class that manages MPMoviePlayerController. That plays video fine.
I have another view that is a UITableViewController. Passing the UITableViewController to my UIViewController property on the video class doesn't work. I just get soun...
I have a segmented control on the top of a tableView that I would like to change the data that is loaded into the table. The segmented control has a button for day, week, month, year. If you click on one of the buttons it should only display that table data for the appropriate time period. This works fine right now when I move across t...
Hey guys, lately I have been asking quite a few questions about memory management on the iPhone. Fortunately things are getting clearer. But I still struggle when it gets more complex: So is there something wrong with this in terms of memory mangement? My question and suggestions are in the comments...
//I get a text from a textfield
NS...
hi , how can i create a simple submit form with some UITextfield and button , when user tabs the button then the textfield information sends into an email (without email application) ?
...
I saw in the inspector that I can change the background color, but I'd like to also change the border color and thickness, is this possible?
Thanks
...