Customizing unlock screen (official iPhone SDK)

Hi,
I want to write a small application, that implements a customized unlock screen on iPhone. Is there a way to do it using standard iPhone SDK?
Thanks a lot for a clues
Nava

I tried the following :
NSError *error;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"export.csv"];
if ([records writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error] == NO) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Export error" message:@"An error occured while writing the file."
delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
static NSString *email = @"[email protected]";
NSString *outMailtoPath = [NSString stringWithFormat:@"mailto:%@?subject=Review&body=%@&attachment=%@", email, @"test", path, nil];
NSURL *url = [NSURL URLWithString: [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)outMailtoPath,NULL,NULL,kCFStringEncodingUTF8) autorelease]];
[[UIApplication sharedApplication] openURL:url]

Similar Messages

  • Can't start camera from unlock screen in iphone 5c since ios8

    Hi!
    Some I can't start the camera from the unlock screen in iphone 5c since ios8 update.
    It works a couple of hours after reboot, but the problem keeps turning back randomly.
    After iOS8 update I also installed facebook, facebook messenger, linkedin and sync.me and configured skype.
    The actions are:
    Enabling the unlock screen and then sliding up the camera icon, it seems to appear a camera captured image but then the screen turns black or greyish (randomly) like the unlock screen background.
    The problem doesn't happen from the control center panel locked or unlocked.
    It isn't a big problem because there are simple workarounds, but it's annoying when it happens.
    Best regards,
    Bruno.

    This problem seem to have been solved in iOS 8.0.2.

  • How to unlock screen on iphone 5s after ios8 update

    after updating to ios8 the screen on my iPhone 5s is locked, it does not take password but accepts SIRIS

    Hello, iROBEREYES. 
    Thank you for visiting Apple Support Communities. 
    If you are experiencing an issues with an unknown passcode on your device, take a look at the steps in the article below. 
    iOS: Forgot passcode or device disabled
    http://support.apple.com/kb/ht1212
    If you are experiencing an issues with the touch screen response, here is an article that I would recommend taking a look at. 
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Cheers,
    Jason H. 

  • IPhone SDK Beta 4 - How to send emails with attachments?

    Hello everyone!
    This is my first post Please be so kind to point me in the right direction.
    Using the official iPhone SDK Beta 4, I am trying to show the compose email screen not only with a subject and body fields, but also with an attached PDF file that I generated. I know that many apps available in the Installer.app can do that, but can the SDK do that as well?
    Generating a mailto URL doesn't seem to be the answer since the RFC 2368 doesn't support attachments as far as I understand. All my attempts to hard-code a mailto URL that could trick the Mail application into composing a message with an attachment have failed...
    Could you give me a hint or maybe copy paste some code to help me with attaching files to emails?
    Thank you so much in advance,
    Eugene

    I tried the following :
    NSError *error;
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"export.csv"];
    if ([records writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error] == NO) {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Export error" message:@"An error occured while writing the file."
    delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
    [alert show];
    [alert release];
    static NSString *email = @"[email protected]";
    NSString *outMailtoPath = [NSString stringWithFormat:@"mailto:%@?subject=Review&body=%@&attachment=%@", email, @"test", path, nil];
    NSURL *url = [NSURL URLWithString: [(NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)outMailtoPath,NULL,NULL,kCFStringEncodingUTF8) autorelease]];
    [[UIApplication sharedApplication] openURL:url]

  • IPhone 3g unlock screen language

    Any ideas on the reason that when I restore my o2 officially unlocked iPhone 3g, the unlock screen comes up in Spanish?
    Is there anything I can change to resolve this?
    Thanks.

    It's a support forum, the only images that would be relevant would generally be those connected with the iphone. However, you can in fact post any hosted image. Now whether our hosts would put up with a bunch of irrelevant pictures is quite another story. The OP could post his screen shot, as long as it's hosted somewhere. That type of picture would be relevant & perhaps helpful in solving his problem.

  • How to get official unlock for old iphone 3gs?

    Hi, I switched to Verizon iPhone 4, so my old AT&T iPhone 3gs is no longer in use.
    I travel internationally and would like to unlock my old iPhone 3gs so I can use it with sim cards when I travel.
    I understand there is now an "official" unlocking that can happen through iTunes. Is that true? How can I do it?
    Or is there another way to unlock my old phone that is legal?
    Thanks!

    Yes, it is, however, verizon will unlock your SIM card slot for free. The requirements:
    * Must be a Verizon Wireless customer.
    * The iPhone 4S being unlocked must be active on a Verizon Wireless line of service.
    * The line of service must be active at least 60 days.
    * The line of service must be in good standing for the past 60 days.
    * Only one SIM Unlock per line every 10 months.
    You can go here for all the details.
    I can confirm this as I did it last November for my sister before she traveled to London.

  • How to use custom PAM module to unlock screen ?

    Hi,
    I actually use a custom PAM module for authentificate my users. This is working like a charm with sudo.
    I wanted to add it with the login screen, the one that everyone use. I added my config in /etc/pam.d/authorization and everything is working. When I get a box prompting for a password, the plugin is activated. As excepted.
    But my problem is that the plugin is not activated when my mac get the unlock screen after being on sleep. You know, the one where your screenpaper is shown and your image. How to do so?
    Many thanks.
    Regards,
    Andy Pilate

    Here is how I did it in my app:
    <jbo:ApplicationModule id="am" configname="TestAMLocal" releasemode="Stateful" />
    <jbo:DataSource id="ds" appid="am" viewobject="TestView" rangesize="3"/>
    <%
    TestAM am2 = (TestAM) TestAM.useApplicationModule();
    am2.TestClient();
    %>
    Hope this helps.

  • No power on iPhone 3gs. Shows yellow screen, boots up then freezes at unlock screen when connected to charger repeatedly

    Recently i purchased an iPhone 3gs from someone and was told that the battery was defective. A replacement battery was also given to me with the phone. I went about using it and realized it would shut down when the phone was at about 75%-80%. A week later i decided to YouTube to change the batt, figuring that would solve the issue. The phone worked fine for 5 mins then went off. It didnt come on so i figured the batt was dead. went on and connected my charger. A yellow tint screen popped up then shortly after, the apple logo. Booted up well until it got to the unlock screen. It was frozen, was unable to put in my code. 2 mins later the phone reboots on its own and the same thing happens... over and over until i disconnect the charger. The batt shows its a 97% yet it wont stay on. I've tried to research but cant find anything that works. I NEED HELP!!!

    Called AppleCare this morning, confirmed that this is a hardware problem. Getting replacement.

  • My iphone 4 is frozen on the slide to unlock screen. ive tried the sleep/awake button home button but it doesnt work can someone help me :)

    my iphone 4 is frozen on the slide to unlock screen. ive tried the sleep/awake button home button but it doesnt work can someone help me

    By the slide to unlock screen, are you talking about the slider at the bottom of the screen after taking out of sleep mode?
    And by trying the sleep/wake button and home button, are you talking about a reboot by holding both the power/sleep button and the home button until the apple logo appears and it reboots?  And that does not help release the issue with the slider?
    Are you sure the iPhone is well charged?
    If none if this helps, have you tried syncing/backing up to a compter and then restore by iTunes on a computer?
    If you cannot do any of this it would be good to schedule a visit to an Apple store genius bar and have the techs try their hand and diagnostics.

  • Iphone 2g turns off itself while on hibernate/unlock screen

    Hey guys, I recently bought a Iphone 2g 8gb. Was very happy... but as i connected it the first time to my computer and opened the itunes it asked me for a update (3.1.2 to 3.1.3) I did so... after the update was done i could not access my sim card, it showed the message that the SIM CARD IS NOT SUPPORTED ETC... so i decided to downgrade it to my pevious ios that is 3.1.2... did so, again recieved the same message that the SIM CARD IS NOT SUPPORTED ETC... after i went to one of the forum they gave me the process called BLACKRA1N... i did so... and it worked.
    The iphone accepted my SIM CARD, but suddenly i noticed that my cell turns off by itself after i put it into the hibernate/unlock screen! It takes hardly about 5 minutes to do this and sometimes even less than that, Even my battery was full too!! but it did not turn off when it is connected to the computer or charger!
    now everytime i put it into the HIBERNATE/UNLOCK screen it does the same thing! I tried to Restore it back but it did the same action!
    Really worried! Please HELPP!!!
    Peace.

    I just purchased a 4s 16G two weeks ago, I experienced the same problem. Sometimes in my pocket, sometimes on my console table. Pressed home button, nothing happened; pressed power button, nothing happened; pressed both then only the the apple appeared. Battery still 38%, sometimes 86%. Is this a common 4s defect by apple?

  • IPhone 4 Unlock Screen Error

    At the slide to unlock screen, it lets me slide the slider, but it freezes when i slide it all the way, then it displays a black screen with a wheel in the middle after about 30 seconds. Then it turns off. I decided to restore, and when I did, it displayed me with the iphone set up menu, but when I slide to unlock, the same thing happens. Any suggestions? Pressing the home and sleep/wake button until the device turns off and the apple logo comes up doesn't work either.

    You can make one here.
    http://smileystuff.us/generatorspg/spraypaint-generator/  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • I am a current customer of ATT,  I would like to unlock my old iphone 3 g. Can this phone be unlocked

    am a current customer of ATT,  I would like to unlock my old iphone 3 g. Can this phone be unlocked? I am not sure of its current operating system.

    Ask AT&T. They are the only ones who can authorize unlocking it.

  • IPhone SDK custom installation, what do I need?

    FYI, I will be developing iPhone Apps only and don't want to install unnecessary things.
    Options are:
    Developer Tools Essentials (Required.)
    iPhone SDK (Obviously need.)
    System Tools (Do I need? It's checked by default.)
    UNIX Development Support (Do I need? It's checked by default.)
    Mac OS X 10.3.9 Support (Know I don't need, not developing anything for OS X, particularly not an old version.)
    WebObjects (Do I need? It's NOT checked by default.)
    Thanks.

    Hi--
    Welcome to the Apple Discussions.
    System Tools (Do I need? It's checked by default.)
    I would suggest "yes." That's the installer for the performance tools. Shark, especially, can be invaluable for profiling your code.
    UNIX Development Support (Do I need? It's checked by default.)
    I'd suggest "yes." It's command line tools you might want at some point (to help in automating builds, etc.). Some aspects of scripting with OS X can also be made easier if you have the UNIX dev support installed.
    WebObjects (Do I need? It's NOT checked by default.)
    Definitely not, that's a web application framework you'd use if you were building a web site.
    charlie

  • IPhone SDK - What is the equivalent of a combo box

    I have a screen where there are quite a few items which are of the multiple-choice type. In other platforms i use a combo box (pick lists) to do this.
    On the iPhone SDK the only thing that comes close is the UIPicketView which is ugly IMHO. it takes too much real estate and too heavy.
    Is this is the only control available now?
    Also does the UIPicker come with an associated control which will launch the picker? What i mean is on other platforms and on the web there is a text field with a button with a down arrow next to it. Clicking either on the text field or the down arrow drops the list down. Is there a similar control on the iPhone which when clicked launches the picker OR do i have to create a button or a custom view which will launch the picker?
    Thanks for reading this and for your feedback.
    -TRS

    I do not believe there is an equivalent of -D in the DB JVM, a possible solution is:
    Load a properties file into the DB using Loadjava, then open this file from your Java code using Properties.load(), then iterate the properties calling System.setProperty().
    Chris

  • 7 day view of Calendar Events on the Slide to Unlock Screen???

    Does anyone agree that an option to view Calendar of Events on the Slide to Unlock Screen would be a quick and easy way to review your next events and appointments?
    Message was edited by: page79
    Message was edited by: page79

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar              

Maybe you are looking for

  • Ipad in recovery mode not recognized by PC or Itunes

    Hi All, I have a Ipad 1 that's stuck in recovery mode ( usb wireplug with itunes logo on top ), the really bad thing is that it's not recognized by and PC or any Itunes I tried, so there is no way to kick it out of the Recovery... When connected to t

  • Clips stretched in Canvas view with same footage from previous sequence

    I created a 1 minute video to play on a laptop that I've edited down to 30 seconds. This 30 second version will be playing on a television, so I changed the Sequence Presets to "DV NTSC 48Hz" and the QuickTime video settings from "Photo -JPEG" (since

  • SRM 7.0 - customizing for print forms

    Hi gurus, we want to use adobe forms for print forms. In customizing we are able to switch from smartforms to  adobe forms (sap note 1264423). While we are encountering problem in configuring differents output actions  for certain documents: i.e. pri

  • Why can't i download podcasts?

    K, so i haven't relly used the store before or ever downloaded a podcast because it won't let me so im sure there's something i probably haven't done yet! But ye,any help would be appreciated! Basically, I go to the screen with the podcasts, click on

  • How to Install Discoverer 10g.

    Can some one suggest me how to install Discoverer 10g. What metalink oracle document id that i needs to follow. 1 What are the pre-install step it has. 1.1 Is it required to install oracle database as the part of pre-install. Or Discoverer 10g will a