iphone

iphone, get the object count without performing a fetch?

Hi, I seem to recall that it's possible to return the resulting object count from an NSPredicate in CoreData without actually performing a fetch, but I can't find any reference to this. Can someone confirm that I wasn't dreaming (sad dream to have!), and would this be safe to do in another thread? Thanks Andy ...

CATiledLayer and setNeedsDisplayInRect update problems

I have a view where I add a CATiledLayer as a sublayer. The view is inserted in a scroll view. When specifically requesting an update by sending setNeedsDisplayInRect: to the sublayer, my application hangs. Anyone more knowledgable on the why? EDIT: If I have a UIView explicitly using a CATiledLayer as a backing layer, calling the UI...

how to remove arrow in tableview

Hi, I am beginner in iphone. I am working on tableview. Please tell me how to remove the arrow button displayed in the each and every row. ...

Can we add UILabel to splash screen in iphone?

Hi experts, Can we add an view to the splash screen in iphone?. I have a default.png file in my resources directory but when the splash screen pops up i want to display an text on the splash screen image is it possible in code. ...

How to get Mobile Country and Network code on an iPhone

Is there any way of getting the mnc and mcc numbers on an iPhone? ...

iPhone SDK: Set audio route and also mute audio when mute switch is turned on

Hi, I have an application where user can record sound and also play the sound either in the speaker or the ear piece. To route the audio I set kAudioSessionProperty_OverrideAudioRoute in the following way: if(loudSpeakerOn) { audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker; } else { audioRouteOverride = kAudioSessi...

Iphone Admob Interstitials

Hi there! Can you please tell how to be properly displayed interstitial ads in iphone applications. I implemented this is exactly the same way as in Interstitials example (SDK Admob), but this always showing videos with zombies - so it should be, really? If I understand correctly, I should specify my own video url and it will be adverti...

Access a viewControllers View

Hi, I am trying to get to grips with programmatically configuring views. I have a UIViewController and want to add a UIButton to its view. Well, I created the button: UIButton *newViewButton = [[UIButton alloc] initWithFrame:CGRectMake(baseX + viewPlusX, baseY + viewPlusY, viewWidth, viewHeight)]; [newViewButton setTitle:@"View" forSta...

How to show alerts from the application when it is not running?

Hi, I have an application in which I have to show the alerts for user specied reminders, I am able to show these reminders when my application is running but my problem is i have to show thsese reminders to the user when my application is not running? is it possible to show the alerts or remindsers when the application is running? wha...

Handling multiple UISwitch controls in a table view without using tag property

I have a table view controller with multiple UISwitch controls in them. I set the delegate to the table view controller with the same action for all switches. I need to be able to determine what switch was changed, so I create an array of strings that contains the name of each switch. The indexes in the array will be put in the tag prope...

how to remove seperator from tableview

Hi, I used interface builder and changed my tableview style as grouped and seperator as none. I was able to see the change in the display style which is grouped right now. But The seperator change is not getting reflected. Kindly help me how to remove the seperator. ...

how can i display current time on a label ?

how can i display current time on a label iphone? ...

use system icon in iPhone

Hello everyone I hope to use the MAC OS's icons at http://oleb.net/wordpress/wp-content/media/apple-symbols-font-glyphs-table.png how can I access these icons, export them from MAC system to png files or dynamically access them in cocoa codes ? Welcome any commnent. Thank interdev ...

A question related to UITextfield(cursor)

I have code UITextfield in rounded shape but the cursor position is not in center for UITextBorderStyleRoundedRect not in center but upper .but the cursor position is center for UITextFieldBezel. why is it so? ...

CABasicAnimation not changing its position property after animation completes

i am applying CABasicAnimation for position property of a layer it is animating well but after animation complete its coming back to original position how to avoid that and to make image to stay in animated position only? ...

iPhone app spinning an image from the last position...

I am trying to create an animated spinning image. This is all fine and I am using CABasicAnimation as described in this thread http://stackoverflow.com/questions/486609/how-can-i-use-animation-in-cocos2d My problem is that I want to spin the image more than once a random number of times and I want to spin it from it's last position. At ...

Setting tick marks for UISlider

Is there any method for setting tick marks for UISlider. NSSlider has something called - (void)setNumberOfTickMarks:(NSInteger)numberOfTickMarks. But UISlider does not appear to have one. What i want to do is get the slider values as 0,1,2,3,4 etc if say i set the min as 0 and max as 5. Now as such UISLider returns something like 0.0,0....

handy tool to draw transparent icon for iPhone app

Hello everyone Is there a handy tool to draw transparent icons for iPhone app. I know PhotoShop can do this, but I prefer a simple one Thanks interdev ...

How to merge multiple UIImageViews into one UIImage

hi all, I have 2 UIImageViews laying on top of each other ( picture + overlay frame ) and I want to save them to the camera roll as 1 picture. How should I combine those 2 UIImageViews so that I can call the UIImageWriteToSavedPhotosAlbum function, using a 'result' UIImage? ...

iPhone - Preventing Sleep while using applicationMusicPlayer in MPMusicPlayerController

I am trying to disable the automated sleeping of iPhone for certain period in my app. Used [[UIApplication sharedApplication] setIdleTimerDisabled:YES] which works fine as long as I play no music. But when I play music the Idle Timer seems to get reactivated. I have tried all kinds of tricks from NSTimer firing silent sounds every 10 ...