objective-c

Any new idea's about Transition effect of UIView

Any new idea's about Transition effect of UIView THanks in advance rather than the existing one's ...

iPhone app crashes in xmlparser in the middle of nowhere??

This app has been running fine for months, but now on iOS4 i get crashes when using NSXMLParser. It is crashing in the middle of parsing. The problem is that i dont get a decent call-stack. the result is: 0 func_.29470 1 stub helpers combined with a: Program received signal: “EXC_BAD_ACCESS”. in the logs. I enabled: NSZombieEnabled...

iphone switchview with buttons,how to allow press button one time only?!

hi to all, im newbie developer and creating my first iphone app... and i have one little problem :) i switching in my program 2 views, secondView is over firstView, and when i press 2 times or more on button to show the SecondView iphone simulator stopping worling and if after i press to show the FirstView he still showing SecondView vi...

Video edit framework in objective-c

Hello guys! Is there any framework that can edit videos in objective-c. Any help is welcome. Thank you very much! ...

Passing integers when floats are called for

If the arguments of a method call for floats to be passed, can one simply pass 10 as opposed to 10.0? I have been doing this, but often see code which specify .0 and have been wondering if there are any reasons to do so. Thank you. ...

How to highlight a text of string in objective c

I have a random string given below. ungs- und AnimationsprogrammSport / Unterhaltung: Gegen Ge I would like to display the Sport text as a bold. ungs- und Animationsprogramm Sport / Unterhaltung: Gegen G How should can I display text like this? Thanx in advanced ...

How to Keep an NSArray in Memory as Long as App is Running

Hi all, Can anybody tell me how to make sure an NSArray exist in memory as long as the app is running? Thanks...... ...

prepend NSString?

I am getting a JSON response from a web service but it is not wrapped by the [] tags required by the JSON parser I am using so I need to Append and Prepend those characters to my NSString before I pass that to the JSON parser. Here is what I haver so far: NSString *responseString = [[NSString alloc] initWithData:responseData encoding:N...

How to create an atomic function in objective-c

Is there a way to execute a whole objective-c function atomic? As far as I know, using synchronized only protects a specific peace of code from being executed on multiple threads at the same time. But what I want is stop ALL other threads from doing ANYTHING, as long as I execute the function. ...

Creating Nsmutable array from xml feed

hi everybody. I want to copy items in BlogEntries into my custom Nsmutable Array. The code is -(void) grabRSSFeed:(NSString *)blogAddress { // Initialize the blogEntries MutableArray that we declared in the header blogEntries = [[NSMutableArray alloc] init]; // Convert the supplied URL string into a usable URL object NSURL *...

prevent a detail view from loading again on ipad?

I am using a split view controller and I am pushing views to the detail controller once a selection is made on my table view controller. This works great except I can keep clicking the same choice over and over and it keeps getting added to my navigation controller stack so I end up with and endless stream of back buttons which is prett...

Accessing dynamically typed member

I have a dynamically typed member id currentEvent in my view controller class. The rationale is that the view controller is used to display data for two model classes that are very similar. I have a setter: -(void)setCurrentEvent:(id)e { [self.currentEvent release]; Class eventClass = [e class]; currentEvent = [[eventClass ...

NSBitmapImageRep for iPhone (Or direct pixel access for CGImage)?

Is there a good analog to NSBitmapImageRep in UIKit? Specifically I'm looking for similar methods to setPixel:atX:y: and getPixel:atX:y:. I have found this technote, and it does get me most of the way there using CGImage, but how do I know what order the pixels are in? ...

Round the corners of an image

Is there a way of rounding the corners of an image that I placing in an imageview? ...

How do i detect keystrokes using objective c?

Hi, just wondering, how I go about detecting different keystrokes, and then detecting what key has been pressed I tried using this, - (void)keyDown:(NSEvent *)event but didnt seem to get any results. I've also had a search around but didn't find anything. I'm guessing I may have to set up something in interface builder to detect keystrok...

passing information from Modal View to UIViewController

I have a UIViewController. In this view controller I have a setup that is like this: ScrollView -> UIView -> UIImageView, so in the scrollview I have a container which has a UIImageView view in it. In the UIImageView I have a map which is a subview of the container. I also have a tab bar controller along the bottom of my screen. When ...

Pointer Naming Preferences

Possible Duplicate: Whats your preferred pointer declaration style, and why? Just curious: What's you standard method when declaring pointers? Why? SomeClass *instance; OR SomeClass* instance; I prefer the second method as it keeps the entire type together (it's a 'SomeClass pointer'). But I know many prefer the first an...

iphone TabBarController, how to resize it to height?

Hi to all, any one know how to resize the TabBar? i want make it 80px height for use my custom background and buttons,and make it more beautiful. thank you ...

rebuild table cells in UITableViewController

I have a UITableViewController that when loaded gets data from a web-service and stores it locally in an NSMutableArray, once that is loaded I need to loop through that data to build my table cells. I have all of the code for looping through my array working fine I just need to know how to fire my controller to rebuild the table so my...

Perfomance difference between Open GL and UI kit for a map based application

I am currently working on a navigation based app which uses third party maps. I use a lot of tiling. Though the maps are of very high resolution, I estimate an average of 6 tiles each of 256 * 256 pixels loaded . I might refresh the tiles like once in five minutes. I am currently using UIScrollview + tiles... Should I really switch to O...