Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-06-2011, 10:13 PM   #1 (permalink)
CiE
Registered Member
 
Join Date: Dec 2010
Posts: 36
CiE is on a distinguished road
Default Guys a question...

I'm not sure where to search for an example or a how too on this topic or even the right name for it. If someone can point me in the right direction that would be great...

I would like to have a button on a view that when pressed will bring up another view with two options save to notes and send email.

Then i would like to get the information from a text label saved as a new note or sent as an email.

I am lost on the process of creating that second view, and also on how to save to notes. Any help will be great. Again i do not want the code done for me i just want a push in the right direction. I checked the reference for SMTP, Notes, Add Note, Send email. and i came up empty. thanks!
CiE is offline   Reply With Quote
Old 11-06-2011, 11:10 PM   #2 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

For saving notes, you could make a data container class that inherits from NSObject and conforms to the NSCoding protocol. Then you could wrap the note object in a NSData object and save that to NSUserDefaults.

For sending an email, look at MFMailComposeViewController.

To create the view that creates the notes, just have a textview and then when the user clicks save, get the text from the textview and save it into a note object.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 11-20-2011, 06:55 PM   #3 (permalink)
CiE
Registered Member
 
Join Date: Dec 2010
Posts: 36
CiE is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
For saving notes, you could make a data container class that inherits from NSObject and conforms to the NSCoding protocol. Then you could wrap the note object in a NSData object and save that to NSUserDefaults.

For sending an email, look at MFMailComposeViewController.

To create the view that creates the notes, just have a textview and then when the user clicks save, get the text from the textview and save it into a note object.
Can i have an example of saving to notes? or a tutorial. Thanks!
CiE is offline   Reply With Quote
Old 11-20-2011, 08:29 PM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by CiE View Post
Can i have an example of saving to notes? or a tutorial. Thanks!
When you save "save to notes" do you mean save notes into the Apple notes application? I don't think Apple lets you do that.

Or are you asking how to save text in your application to a list of saved notes inside your app?
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 406
16 members and 390 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, dre, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, mbadegree, n00b, pbart, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0