I have a UIImageView object that when clicked it will play a animation, I want to reuse the same code to make multiple objects. How do I set the sender tag so it knows its a different object?
- (IBAction)startClick:(id)sender;
- (IBAction)startClick:(id)sender
{
//UIImageView *theButton = (UIImageView *)sender.tag;
bubble.anima...
I currently have a UINavigationController based application that works just fine. I'd like to take one of the view controllers that's a few levels deep into the UINavigationController stack to have a "flip side" type view as demonstrated by Utility apps, etc. Very common thing.
The problem here is that I created an intermediate view con...
A method is called when a return button on the keyboard is pressed. After calling another method which returns an integer a message is created based on that integer. The message is then passed into an UIAlterView and displayed to the user. The alert doesn't have any options (hence why I'm not calling a delegate), but simply notifies the ...
I have a UITextView that has a lot of content. I have a button that allows the UITextView to automatically scroll + 10 pixels in an NSTimer loop:
scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 10);
[textView setContentOffset:scrollPoint animated:YES];
This works really well, as the animation makes the scroll rather smooth. ...
I need an iPhone app built and at the moment it's looking like it would be best if a few developers worked on it.
Is this possible with an iPhone app/what would be the best way for everyone to work vaguely together so that it can be all put together at the end?
Cheers!
EDIT-People will be spread out, maybe over the world, or at least a...
Code in the book Beginning iPhone Development (by Dave Mark & Jeff LaMarche) assigns to the UITableViewCell text property:
UITableViewCell *cell = ...
...
cell.text = ...
This assignment brings up a "'setText' is deprecated..." warning. What should I use as an alternative?
Also, how do I open the long URL in the warning (in Xcode) w...
I have a method that accepts a sender and is called with a UIbutton. How do I get that object to casted into a UIImageView? Basically how do I re-use the code for the button.
- (IBAction)startClick:(id)sender {
button.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Pic_1.png...
Hi,
I'd like to deselect(or unhighlight) selected tab item.
I tried many things I can, but no luck.
My tab bar is wrapped by UITabBarController (say it as tvc).
First, I tried
tvc.selectedIndex = -1 or 0 or nil;
then nothing happened.
Second
tvc.tabBar.selectedItem = -1 or 0 or nil;
it crashed.
Is there any other way I can do?...
I am using UITabbarController with 8 to 9 items (these are UINavigation controllers)
It is easy to select an item programmatically using
tabbarcontroller.selectedIdex = x;
if x value is between 0 to 4 then it's work as expected but if it's greater than 4 then it's select "More" as a view controller.
How can we programmatically select...
(my last post was deleted as it was not-programming related; I'm rephrasing it in a more coding-centric way).
I'm trying to develop a review monitoring system for several iphone apps I've developed, for instance to email me with the contents of a review when one comes in. (Right now, without an iphone, I can't even view reviews.) I was...
Hi Everyone:
I am attempting to deploy my first development iPhone app, and am running into some problems. I have successfully went though the online Provisioning Assistant, but now I am stuck. No matter what I do, I always get the following error.
/usr/bin/codesign failed with exit code 1
Anyone have any ideas why this is happening...
I know a app can launch other apps by using this codes: [[UIApplication sharedApplication] openURL:appUrl];. And I know the scheme of url to open safari and mail, but I did some searches and found nothing about the scheme of settings.app.
...
I'm working on a very simple iPhone app, that in the end will have maybe 3 or 4 settings.
Ideally I'd like to use the Settings app provided for free in the SDK.
One of the settings I'd like the user to be able to enter is their date of birth, however there doesn't seem to be a way to prompt the user for a date in the Settings app.
Asi...
I want to change the view size for iPhone 3.0, but I find that in IB, size&Position section, the Width and Height for view was set as fixed values. Does apple forbid us to change its value here. How can I change its Height then?
PS:I use the navigation bar as title bar, so I need to change the height of view to 416 so as to know how muc...
How can i get favicon image from its websire url using xcode....
Is there any special api for this?
Can anyone help me?..... Thanks in advance..
...
Hello
I have create an application on iphone using objective-c.In this application i am just displaying different players images stored in one folder, which will be run perfectly on simulator. But when I deploy it on iphone it is not showing the images of the player.
for that the code is:
UIImageView *imageplayer = [[UIImageView allo...
Hi All,
I have a problem in calling a web service from another class.
I am taking reference from Hello_Soap Example. Whenever I call a web service as shown in example it works fine and calls following methods internally.
-(void)connectionNSURLConnection *)connection didReceiveResponseNSURLResponse *)response
-(void)connectionNSURLConn...
I've been fighting this framework error for days now. I have included the MessageUI framework from the iphone3.0sdk and imported the header file(MessageUI/MessageUI.h)
Anyone know what this error means?
collect2: ld returned 1 exit status
symbol(s) not found
literal-pointer@_OBJC@__cls_refs@MFMailComposeViewController
".objc_class_nam...
i need to copy this database file and save it in someother location or i can take backup of the db file. is there a way to do this programmatically.
Thanks
Satish
...
How can I invoke a method at runtime on an Objective-C class when all I have is it's signature in string form:
NSString* typeName = @"Widgets";
NSString* methodName = [NSString stringWithFormat:@"add%@Object:", typeName];
Note that the method name can change at runtime but the number of arguments stays fixed - one in this instance.
...