I'm experimenting. Could you help me? I have a problem.
I'm experimenting with an app I've made in Xcode. I have a button, that displays the social networks (on click) only if the user drops an image into the image view. Otherwise the button does nothing. I would like to display the alert saying "You have to drop an image into the app." or something like that. Could you help me?
Tiny part of the code is down there...
- (IBAction)shareToService:(id)sender {
NSMutableArray *shareItems = [NSMutableArray arrayWithObject:[self.textView string]];
NSImage *image = [self.imageView image];
if (image) {
[shareItems addObject:image];
NSSharingServicePicker *sharingPicker = [[NSSharingServicePicker alloc] initWithItems:shareItems];
sharingPicker.delegate = self;
[sharingPicker showRelativeToRect:[self.shareButton bounds] ofView:self.shareButton preferredEdge:NSMaxYEdge];
else{nil;};
Sorry, I misread that completely. Replace that else clause with something like this:
NSAlert * alert = [[NSAlert alloc] init];
[alert setMessageText: NSLocalizedString(@"Image Required", NULL)];
[alert setAlertStyle: NSInformationalAlertStyle];
[alert setInformativeText: NSLocalizedString(@"You have to drop an image into the app", NULL)];
[alert runModal];
Similar Messages
-
I suspended my verizon service for last 3 months and it has been reconnected few days ago. But I want to re-suspend the service for 3 more months. As far as I know, I can suspend the service up to 180 days. How can I re-suspend the service? The web shows "the service is not available at this time" for every time i attempt to suspend the service. How can I resolve the issue?
I'm sorry you're having issues with suspending your line dyoung_lee. For each line of your account, you can only suspend your service for up to 180 days in a 365-day period. Have you suspended your before in the past year? Your line can remain suspended for up to 90 days.
KinquanaH_VZW
follow us on Twitter @vzwsupport -
I wanted to suspend my verizon service, but I couldn't. The web shows "the service is not available at this time. Try it later..." How can I address this problem??
Greyson_Roberts wrote:
Hey ChristinaB_VZW, I sent you a follow request I'm still the same person on the same account this is just my username for the forums on my line. I'm also GreyR16 but registered under my moms line by accident. The problem went away but now it says we have pending orders so the plan can't be changed. What does that mean? Is that maybe where we dropped moms insurance for the next billing a cycle and added data for my dad halfway through the month?
You have to wait until the billing cycle ends before making any more changes to the account. The dropped insurance is definitely an example of a "pending order". Depending on how the data plan was changed on your dad's line, it might also be a pending order. -
I can't access payment purchaces on apps Apple!and also say I need to visit iTunes support and I did now,could you help me pls with this problem?calle at this #********
<Personal Information Edited by Host>Sorry, but we are all users here, just like you. Apple is not following these discussions.
Did you visit the iTunes support page/account&billing and click on "Account Support" to get in contact with iTunes Support directly?
Apple - Support - iTunes -
Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?
Whinston,
I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies? -
Hi.I need help.my iphone was Stolen .how can I get back my iphone. Serial No.DX******PMW.could you help me find my iphone.thank you very much.could you send me the ICCID number to help me find the iphone.if you can help me.
<Personal Information Edited by Host>
Sincerely a Chinese girl really need your helpSorry we are all users on this User Community No Apple Staff
Read this .
http://support.apple.com/kb/HT2526
Apple do not and cannot assist in finding stolen property ,that is the responsility of your Police -
For some reason I cannot download and install the latest version of iTunes. 11.0.2. Could you help please? Each time I try, I get a command box saying 'The feature you are trying to download is on a network resource that is unavailable. Click Ok to try again or enter an alternate path to a folder containing the installation package iTunes.ms in the box below.
Please help!
Many thanks in advance
Ben Bentley
West Midlands
UK(1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
http://majorgeeks.com/download.php?det=4459
(2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
(3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
(4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
(5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time? -
I have had a update on my mini ipad and its asking for a code could you help me out please
I have got a iPad mini a update has come though and its asking me for a code when i click update could you help me out please
TheArtificialNerd wrote:
I can say 100% that the AppleCare phone number only redirects to other AppleCare groups.
ALL of them Apple corporate or Apple Authorized partners. -
hello. the last month i face a problem with youtube at my macbook. most videos stop playing after maybe 20 - 25 sec. the same time the time bar stops moving. could you help me solve the problem? thank you
hello. the last month i face a problem with youtube at my macbook. most videos stop playing after maybe 20 - 25 sec. the same time the time bar stops moving. could you help me solve the problem? thank you
-
I was working with the old version of Family Search Personal Ancestral File through Internet but I cannot deal with the new version which uses Firefox. Could you help me to work with the old version? Thank you
Junho wrote:
However, in Numbers, I cannot do the same thing with same procedure..
What should i do to get all of those 4 at the same time?
Please let me know..Thank you!
First, be aware that Numbers is not MS Excel, and Excel is not Numbers. Features available in one of these two applications are not necessarily available in the other.
LINEST in Numbers works somewhat differently from what you describe. The function is well described in the "iWork Formulas and Functions Help" document, available through the Help menu.
I'd start there, with a search for LINEST.
Regards,
Barry -
When I upgraded my OS to OS X 10.9 the computer doesn't connect the LAN automatically after sleep. Could you help me?
just an update on the situation....
the problem is solved. after trying everythng, at last i did a reset on my linksys e3200 router - and BANG!!!
airplay works.
hope this helps someone else. -
my iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!
yours sincerly
jackfromsurreyWhat I am saying is ..........
The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship with the Carrier and then follow the Carrier's process to unlock
With a PAYG it usually means adding a specified (by the carrier ) amount usually £15 /£20 depending on the carrier
This is how O2 function and according to Gemma this is how Vodafone work -
I can't import orf files ! Could you help me ? thanks
Hi
I haven't any problem to import nef files on lightroom 5 , but I can't import orf files ! Could you help me ?Camera Raw plug-in | Supported cameras
Camera Raw-compatible Adobe applications
Mylenium -
I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?
Urvergessen wrote:
+You may have already done this, but do you have the first AirPort Express configured to "Allow this network to be extended"?+
Could not find that setting anywhere.
It's in AirPort Utility, AirPort panel, Wireless tab.
When I'm within the range of the base station I connect normally, but further away the connection drops despite the fact that the other Airport is very close and light is green. Interestingly, my PB Pro has signal almost everywhere in the house, but my iPhone and Mac Mini don't. Most likely just a hardware difference?
In AirPort Utility with the second Express, in the AirPort panel, Wireless tab, have you checked "Allow wireless clients"?
The second AP does show an IP address: 10.0.1.3.
With a "Configure IPv4" setting of "Using DHCP", that suggests that the second Express really is connecting to the first Express. In that case I have no other explanation of your your problem. -
i have updated my iphone to ios 6.0.1 but it is not activating so please could you help me out....while inserting in itunes it showing no sim card inserted
All iPhones sold in Japan are carrier locked. The Japanese carriers do not offer unlocking.
You can not use that phone on a carrier other than the one it is locked to.
Sell it and buy one you can use.
Maybe you are looking for
-
How can I make my CP modules more stable and reliable?
We've recently rolled out a major compliance training module to our whole company. It was quite a large project about 13mb when published, including audio. It was delivered via the latest version of Saba. Some users had no problems with it - it ran a
-
Central Performance History from satellite systems
Hi, I'm investigating Central Performance History at the moment but am having problems getting the statistics from the satellite systems from Solution Manager. I have our Solution Manager system setup as the CCMS CEN. I monitor about 10 SAP instances
-
How to get sequence name in run time.
hi I have several sub sequence called in the main sequence in TestStand. Those sub sequences have different sequence names, which i wanted to display by string indicator on the Labview Operator Interface. Is there a simple way to show the current cal
-
The Power Direktor 12 can not found a camera from USB
I have load Power Direktor 12 Install Win 7 64 bit oll ok but when i go over vidio Grubber in USB the Programm found nothing ! A other Programm from my found this . What can i doit with Power Direktor fre USB ?
-
"Uh-oh, something went wrong! Error Code: 503"
I keep getting this error code and I've tried everything to fix it but nothing works. Also it only happens on my computer nobody elses