cocoa-touch

Custom Number Pad UIKeyboard.

How would I go about creating a custom number pad like what is used in 'Tipulator' and other apps. I know how you can customize UIKeyboard, but their number pad doesn't look at all like the default number pad. Is it even a UIKeyboard or a separate UIView? ...

How to check programatically if an App is installed?

I am developing an iPhone application which will install few third party applications in an enterprise. I have the information about the bundle IDs. Is there a way to check if the application is already installed, using some system APIs? Currently the application gets installed again, overwriting the current installation. I need to preve...

Can't see why there is a memory leak here

I have the following block giving me problems in the performance tool: Particularly it is saying STObject is leaking. I am not sure why? for (NSDictionary *message in messages) { STObject *mySTObject = [[STObject alloc] init]; mySTObject.stID = [message valueForKey:@"id"]; [items addObject:mySTObject]; [mySTObject rele...

Using depth buffer on iOS with OpenGL ES 1.1.

Hello, I'm trying to get a depth buffer working so I can start making a game for iOS. I'm fine with OpenGL and Objective-C for OSX but this is my first time making an iphone application. I removed the ES1Renderer and ES2Renderer classes and moved the ES1 code into the EAGLView class. The default animation worked when I did that. When I ...

Multithreading problem(UI not updated)

Hey, I have a problem in Multithreading. To describe this, I have two threads. On main thread I have some logic And on another thread, I have a logic and some logic to UI which will update UI. What I want to do is that I want to call some method after the UI on another thread is updated. I think I am supposed to use NSOperationQueue or s...

Why some methods are required in delegates?

Hi, I'm very curious - why does UITextInputDelegate have all its methods required? Why can't I just implement the one I want (for example textDidChange)? ...

How can I resize a UITableView header?

self.headerView.frame = CGRectMake(0, 0, 320, 167); //this is a UIView doesnt seem to do anything. everything is hooked up in IB. ...

Problems setting background for grouped UITableView

I want to have a background image behind my UITableView. This works fine, but for each grouped UITableView it seems to be using my background image. I just want it to use the background image once: Note: This is all inside of a UITableViewController class self.view.backgroundColor = [[[UIColor alloc] initWithPatternImage:[UIImage image...

What to learn after learning Objective-c for iphone programming

Hi im im learning objective-c so i can program for the iphone and ipad. What do i learn next? cocoa? and then what else if any of you are developers please give me a list of what i need to learn Thanks :) ...

UIPickerView with variable/dependent second column

I am trying to have a UIPickerView where the second column will depend on what's chosen in the first column. For example: Suppose the first column has the fruits Apple, Orange, Pear. If i select Apple in the first column I want the second column to list (Fuji, Granny Smith, Red Delicious). For Orange I want the second column to become ...

Accessory View out of visible range of UITableViewCell

I create custom UITableViewCell and just put the Accessory Type to Disclosure Button cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; But the half Accessory is out of the View on the right border of the screen. Sadly, but I can not post a screenshot because I need 10 posts to do that. I searched everywhere but I d...

Set the image property of an UIImageView - Does not Work

Below is the relevant code .h IBOutlet UIImageView *productImageView; @property(nonatomic, retain) IBOutlet UIImageView *productImageView; .m @synthesize productImageView in the initWithNibName custom initialization: NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@"http://www.myurl.net/test.jpg"]]; UIImage *image =...

SenTestCase in Xcode 3.2 and XCBuildLogCommandInvocationSection Errors

I have a set of SenTestCase that are causing issues in XCode 3.2.4. When attempting to compile (with a very basic STFail(@"");) the following compiler errors occur: An internal error occurred when handling command output: - [XCBuildLogCommandInvocationSectionRecorder endMarker]: unrecognized selector sent to instance An inte...

iPhone telephone api?

Hi everyone, Is it possible to access active calls on the iPhone (with or without jailbreak)? Best, Stefan ...

load pathForResource from a text field?

Hey so i am trying to give my music player a path from which it will find the music file to play but i have one question. Is it possiable to read the pathForResource from a text field instead? I have a table view, whena row is clicked a new view pops up where the sound will be played. Regular: NSString * pathToMusicFile = [[NSBundle ...

Cocoa Touch - AVFoundation

Im trying to play a sound in my app using the AVAudioPlayer stored in the AVFoundation. So i drag AVfoundation into the frameworks and i get a warning stating... ld: warning: in /Programming/Obj-C Programs/iPhone/Awkward Cricket/AVFoundation.framework/AVFoundation, missing required architecture i386 in file Help please! ...

Equivalent of [[NSWorkspace sharedWorkspace] runningApplications] for iphone / iOS?

I've been poring through Apple documentation for some time now but haven't found an iOS equivalent of the sharedWorkspace object that one can get from NSWorkspace in AppKit. Basically, I just want the runningApplications method from it. Can anyone point me in the right direction? ...

Is there an easy way to observe the visible cells in a UITableView?

I need to keep track of the visible cells in a UITableView, since certain events need to occur when cells that represent specific pieces of data become visible. UITableView doesn't seem to be KVO compliant for -indexPathsForVisibleRows or -visibleCells, and there's no UITableViewDelegate method that gives a hook for being notified that t...

How to calculate first NSDate of current week?

i.e.: NSDate *firstDayOfWeek = [[NSDate date] firstDayOfWeek]; for example, today is Aug 19, I'd want to get a NSDate of 2010-08-15 12:00am from above line of code. Thanks! ...

how to rotate UI segmented control

hey all i want to know rotate the UI Segmented control to be in a vertical look cheer BOB ...