iphone

MVC and the communication between them. What did i miss?

Hey all, trying to learn objective-c. It was going quite well, until I realized I was missing a link. When building in the spirit of MVC, I understand it as you Model and View should never talk to eachother. I have this problem I'm messing around with now. A model containing a polygon class. Contains an polygon object with attributes...

Trying to order built-in UIAnimations, not having much success

OK, I have a screen in my iPhone app that looks like the following: When the Add Notes cell is touched, I would like for the keyboard to disappear, THEN I would like it to modally display the Edit Notes Screen (which also has a keyboard, but I would like for it to animate back on screen). Right now it animates everything at once (the ...

iPhone dev - Manually rotate view

How can I manually rotate a view using the autoresizingMasks, as if the user had rotated the phone and it had auto-rotated. Also I want it to be instant, no animation. I you want to know why I need this, look at my other question at http://stackoverflow.com/questions/1219988/iphone-dev-keeping-interface-rotation. Thanks!! ...

NSDictionary into 1 NSMutableArray

Hi Is it possible to take 2 NSDictionaries and populate 1 NSMutableArray? So lets say I have this situation: dict1 = key/value of: id/firstname dict2 = key/value of: id/lastname (These are populated from a database query to the server) Now, I want to combine the dictionaries into an NSMutableArray of "user" objects. the user object ...

Can we remove certificates and create again on Account for iphone app distrbution

Hi, I have one big problem. I am having iphone developer account and now i have given all the controls to my developer so he has created certificate in account and install it. But he didn't know that if we want to use this information on multi system then we need to keep .p12 certificates and we have to install this certificates on anot...

Why it does not draw circle ? (iPhone)

Hello there, i'm very new to iPhone sdk, mac os, xcode and etc. So don't take my question too hard. What i'm trying to do is figure out how can I draw an circle on the screen. (I know how to put image and move it, this is what my source does). Can you please explain me how can I draw simple shapes on that screen ? :) P.S. and Also...

problem of CGContext

i want to draw a line in the rect of UIView when i touch screen. please can someone help me to check the code ! thanks - (void)drawRect:(CGRect)rect { } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth(context, 5.0); CGContextSetStrokeColor...

iphone tabs issue

i have made 5 tabs,namely home,ask,tip of the day,inbox,disclaimer.....my problem is that the text "tip of the day" does not exactly fit inside the tab....i mean "T" of tip and "Y" of day are getting out of the area of tab...and it's looking absurd...plz help ...

Regarding Scroll View

How to Select the current image in Scroll View and How to save that image(Original Image from My app) to Photo Album of iphone Please help me ...

Weird Error In Program

I am new to programming, so when I got this error, I didn't know what to do. In my iPhone app, I press a button to switch a view, then I get this in the log. GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public...

Streaming songs to connected devices using gamekit

I want to play the song from one iphone to the other, it is like the user from device A selects a song from his IPod and plays it, while the users on Device B can also listen to that song using their own iphone which is connected to the Device A using either the Game Kit or wifi. So is it possible to stream the song from the ipod librar...

How do I use compressed textures on iPhone?

Are there any tutorials that can teach me how to use mipmapping in my program? I already know how to generate mipmaps, but i want to find out how to read, load and use the pvr file in my program. ...

Saving audio files?

Is there way to save audio file on iPhone device from app, maybe in default ringtone directory folder? Something like way we save images with function UIImageWriteToSavedPhotosAlbum... ...

When does Default.png get erased?

A Default.png in your application directory looks like a good way to get a zoom-in splash screen "for free". Zero LOC and everything happens before your applicationDidFinishLaunching gets called so your app launch feels snappy. Unfortunately it erases itself a bit earlier than I would like: sometime after applicationDidFinishLaunching,...

Does an IBOutlet needs to be a property & synthesized?

In most examples I see the following setup of IBOutlets: (Example A) FooController.h: @interface FooController : UIViewController { UILabel *fooLabel; } @property (nonatomic, retain) IBOutlet UILabel *fooLabel; @end FooController.m: @implementation FooController @synthesize fooLabel; @end But this works also fine (notic...

UITabBarController - more than 20 views

I am using a tab bar (UITabBarController) on my app and I wish to have more than 20 different views to choose from. If there are more than 5, "More" menu appears. I can access any of my views from "More" menu but I have problems with customizing my TabBar with "Configure" (Edit) navigation bar. I can see only 20 first view icons and I ...

Compresing View

Hi all, in "iPhone tips" app when u scroll view from right to left,thay have show view being comppresed.It gives the effect like when u will open pages in book.Like when u go go next next page in a note book.How to achive this.Including the fonts in page will also get compressed.How to achive this. ...

html attachement in iphone

i am attaching image in email.but how can we attach html file in email ? here is code by which i am attaching image file in an email. UIImage *artworkImage = viewImage; NSData *artworkJPEGRepresentation = nil; if (artworkImage) { artworkJPEGRepresentation = UIImageJPEGRepresentation(artworkImage, 0.7); } if (artworkJPEGRepresentation)...

Retrieve SMS information based on user contact details

How can I make my iPhone application retrieve logs of previous SMSs, calls, etc.. based on a user contact? ...

Adjust cell width in grouped UITableView

I have a UITableView (grouped style) and I would like to adjust the width of the cells such that there is less padding on the sides. I want the cells to occupy the full width of the table view (like the plain style tableview). ...