Hi All
I am trying to hook up a UIButton to a IBAction in interface builder but IB will not show the method that I defined as an option to hook it up to.
- (IBAction)someAction:(id)sender;
That is what I have in the h file, and then in the M file I have
- (IBAction)someAction:(id)sender{
NSLog(@"Button Tapped."); }
The IB Docum...
Hi Everyone,
I want to know how we can change the navigation bar title of UIImagePickerController. I tried several ways but couldn't do it.
tried the follwing ways,
imgPicker.title = [NSString stringWithString:@"My Name"];
imgPicker.navigationItem.title = [NSString stringWithString:@"My Name"];
But it still gives me the default titl...
Lets say I have a core data model like this one:
Item
attributes:
name
type
relationships:
properties
Property
attributes:
name
value
realationships:
item
Each Property is connected to one Item, and each Item many properties. One Property may look exactly the same as another.
I know the value of one Property and want to get the ...
How do I check if a NSNumber object is nil or empty?
OK nil is easy:
NSNumber *myNumber;
if (myNumber == nil)
doSomething
But if the object has been created, but there is no value in it because an assignment failed, how can I check this? Use something like this?
if ([myNumber intValue]==0)
doSomething
Is there a general met...
Hi all,
I am currently trying to implement a photo picker just like the Photo App but with a custom image source.
For the "photo scrolling" part I used the Apple PhotoScroller sample code and adapted it. One of the main difference is that it is now embedded in a navigation controller (wich is the photoPicker own nav controller, not the ...
Hi,
I want to pass the movie url from my dynamically generated button to MediaPlayer:
[button addTarget:self action:@selector(buttonPressed:) withObject:[speakers_mp4 objectAtIndex:[indexPath row]] forControlEvents:UIControlEventTouchUpInside];
but action:@selector() withObject: does not work?
Is there any other solution?
Thanks f...
I can't find this information anywhere. Does the iPhone allow cookies to be stored when a webpage is opened in full screen mode (by placing a link on the home screen)?
...
hi, I am using ipad Xib file which has 768*1024. but when I reduce its size(through coding as .frame property in viewdidload) in adding subview the width and height is reduced and shown but the object (like button etc) is in the same coordinate as it is in 768 * 1024? i have to do anything in autosizing etc?any tutorial step by step?
...
Hi,
I have developed a few applications now all using single view controllers. In each application in the application delegate I alloc/init the first view controller in "didFinishLaunchingWithOptions" and [window addSubview: view_controller.view].
Now my question is what is best practice for removing and adding secondary views.
At the...
When trying to submit my Application using Application Loader i am getting the following error:
Expected token not found in attributes: ITunesSoftwareApplicationTestedOn40
Where can i set this attribute?
Thanks
...
Hey all,
How can I give a tableView cell background color the fade effect as soon as it appears. I know how to get a cell selected when the table view appears but the color persists for ever. I would like it to stay there for a while (2 seconds or whatever) and then fade away. Can anyone help me with this?
Off the top of my head, I am ...
Hi
I have successfully scheduled local notifications in my app using the code below:
Class cls = NSClassFromString(@"UILocalNotification");
if (cls != nil) {
UILocalNotification *notification = [[cls alloc] init];
notification.fireDate = self.alarmNotificationDate;
notification.timeZone = [NSTimeZone defau...
I'm having difficulty understanding how to update my fetchedresultscontroller with a new sort. I initialize a frc the standard way in my class. But how exactly do you modify the fetchrequest with a new sortdecription? My app has a sort selector in the appSettings that the user can change on the fly. Is there a way to update the frc dyn...
Hi
I would like to ask how to set the text of a button whilst also specifying the position and colour of the mentioned text.
Thanks
...
Hi
I would guess it's the simplest thing but it's really confusing me. I'm sure I've successfully used doubles before but now I'm having trouble.
I just made a new 'test' project to see if I can get it working, but all I'm trying to do is set a double value.
So in the View Controller's viewDidLoad i've typed:
double z = 2938.09;
NSL...
I have a strange problem when I try to deploy my current app to the device.
Once it is successfully pushed down I see the Default.png as it loads, then the first view appears for about 1/10 second and the whole screen goes white. It feels like the it is a resolution issue or similar as I can still interact with the text fields. When I ...
Hello.
What platforms is Core Text available on from my understanding it is:
iPad 3.2 & iPhone 4.0+
Is this correct and it is not available in 3.2+ for iPhone?
Thanks
James
...
I have an app with a login page that has three fields for three different random characters. When the user leaves the last field, the soft keyboard disappears and the user can touch a "login" button on screen.
When there is a hardware keyboard (bluetooth or physical) attached, I'd like to be able to hit "enter" on it. However because th...
Hello,
I'm crashing with this message :
'NSInvalidArgumentException', reason: 'keypath name not found in entity
Obvisouly I'm not querying my entity correctly .
//fetching Data
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSManagedObjectContext *context = [(AppDelegate *)[[UIApplication sharedApplication] delegate...
My iPhone app uses a small database to store its settings and saved files. How can I ensure that the default database, with its default settings, gets distributed to anyone who downloads it along with the application files?
EDIT Sorry, I was in a rush when I posted this. I forgot to mention that the database needs to end up in the 'Docu...