cocoa-touch

UIView with rounded corners

Basically i have a login View which has a subview and it has a UIActivityView and Label saying "Signing In....", this subview has a corners which are not "round", how i can make them to look like "rounded" Is there anyway to do it using IB? ...

Formatting multi-line text on the iPhone

Hey guys, I need to display some text on multiple views loaded on a UIScrollView. It should be centered both vertically and horizontally. I did accomplish this with no problems using a UITextView, but now I need to perform a little bit of formatting in the middle of the text - some color changing and italics. My first try was to use a...

Launching Safari in-app?

Is it possible to Launch Safari without having the app close? Just like the in-app email compose window. I'm aware of how to display a webpage in UIWebView. I'd like to use a full web browser, i.e. Safari. ...

Trying to use IBAction to load a ViewController that doesn't have a Nib file

I am trying without success to load PatientListTableViewController from a button on my first page. I have a tab bar item to get to this page already. However I want this same page accessed from a button on my start page because PatientListTableViewController is a tab item that is not seen on the tab bar when the user first opens the pag...

Count-Up Timer Required, iPhone Programming

Hi Guys, I am new to iPhone programming so am hoping someone can help me out here. I have searched the web, but can only find information on count down timers. What I am looking to do is start a count up timer when a button is pressed and then stop it when a certain value drops by, say 5, and finally display that time. I can display va...

guardmalloc what are those warnings and how do I get rid of them?

GuardMalloc: Allocations will be placed on 16 byte boundaries. GuardMalloc: - Some buffer overruns may not be noticed. GuardMalloc: - Applications using vector instructions (e.g., SSE or Altivec) should work. GuardMalloc: GuardMalloc version 18 (gdb) all of the sudden those guardmalloc messages appears in the console window. What's t...

why my app is crashing? UITable and controllers

I have this large table which works without errors, even if seems to me too slow compared to more complex cells i've opened from downloaded examples. The problem comes when i click a cell, then came back, in few seconds of scrolling fast the app is crashing at the line: charImage.image = [self imageForIndex:ch.charId]; If i delete it is...

iPhone Dev: Views not fitting in my UINavigation Controller

I don't use IB much for creating my views, so I usually do everything programatically. I'm bascially pushing a viewController to a navigation controller and it seems the top part of the viewController is under the navigation bar. I'm trying to make the view fit correctly. Here is my code: navigationController = [[UINavigationControlle...

Custom UITableViewCell that expands on touch and includes uitextfield

Hi guys, I've pretty much added a lot to my CustomCell, its working great. However, theres one thing i cant work out.. My requirement is, for a grouped TableView, On tapping a single UITableViewCell, it should expand below, kinda animate and extend below and show more information in that cell. On tapping an already expanded cell, it s...

Photos Not Being Geo-Tagged - How Can I Geo-tag Photos in my iPhone App?

When you take photos with the iPhone camera, they are automatically geo-tagged. I have written the following code to take photos in my GPS Recorder app, but the photos are not being geo-tagged. What am I doing wrong? Should I be using a completely different method, or is there some way I can modify my code to add the geo-tag and other...

How to display back button in nav app?

I'm pushing a tableview in a navigation based app. The pushing view (viewOld) and pushed view (viewNew) are both UITableViewControllers. I have given viewNew a title from viewOld. Once viewNew appears, I see the title but no back button on the left. Shouldn't a back button appear once you give the view (viewNew) its title? I can click...

Total Size of NSMutableArray object

Hi Folks, I've got an NSMutableArray that holds a bunch of objects, what I'm trying to figure out is how much memory is the array using. After looking at a couple of places I know about the sizeof call, and when I make it I get 32 bits (which is the size of the NSMutableArray object it self). Example code: NSMutableArray *temp = [[NSM...

Duplicate Classes in Cocoa-Touch

In a Cocoa-Touch iPhone app, I get this error if I add a class named List to my Xcode project: objc[25878]: Class List is implemented in both /usr/lib/libobjc.A.dylib and /Users/steve/Library/Application Support/iPhone Simulator/User/Applications/4883BE28-51DA-493C-9D8A-28FD026708F4/Duplicate Classes Test.app/Duplicate Classe...

Saving position in view hierarchy in Core Data iPhone app

Hi, how would you go about saving a state in a tableview-drilldown, when using core data? So next time you start the app, the drill down level you where at when you exit the app will be loaded in. I looked at apples drilldownsave sample code, but couldn't figure our how to change to code to work with core data. Any help would be ve...

Objective C - application crashes when creating an array of strings, am I crazy?

If i try to use this simple code: - (void)applicationDidFinishLaunching:(UIApplication *)application { // Add the tab bar controller's current view as a subview of the window [window addSubview:tabBarController.view]; NSString *stringMer = [NSString stringWithFormat:@"OK COOL"] ; NSString *stringMer2 = [NSString stringW...

UIView. What is the correct way to remove a subview from a view hierarchy and nuke it

I have a parent UIView with a number of subviews. Periodically I need to remove a subview and completely remove it from the system. What is the correct way to do this? I tried this: UIView *v = [self.containerView viewWithTag:[n integerValue]]; [v removeFromSuperview]; And got bizarre result. Previously present UIViews dissap...

UIView. How do I redisplay a "data driven" UIView?

I am doing a scientific visualization app for iPhone. Periodically a UIView subclass will receive some data from the network that it must render via its overridden drawRect: method. My challenge is that there is no way to indicate to Cocoa-Touch that this data has arrived - or changed - other then [myView setNeedsDisplay] which is ignor...

Streaming audio to iPhone

Are there any tutorials that discuss how to stream audio from the Internet to the iPhone for OS 3.x? The only one I've seen is very outdated and doesn't compile: http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html. ...

What are UILabel's initWithCoder encoded keys?

I have a subclass of a UILabel that overloads initWithCoder and I was wondering if anyone has any documentation on how the coder is encoded so that I might be able to get information that comes from IB myself. Thanks. EDIT Reason for doing this: I would like the font name given in the xib file. Apple's implementation of initWithCoder ...

Threaded drawing on the iPhone

Apples documentation states that in general Quartz2D is thread-safe. However when drawing to an image context during a NSOperation I'm experiencing crashes (EXC_BAD_ACCESS). This is my current setup: UIGraphicsBeginImageContext(imageSize); CGContextRef context = UIGraphicsGetCurrentContext(); // drawing code UIImage *image = UIGraphic...