objective-c

Best practice for setting up an automated build server for iphone apps?

Hi all, I'm looking to setup an automated nightly build server for our iphone apps, and looking for advice on what works and what doesn't. Basically, something that at least nightly runs all the unit tests and publishes a new adhoc build to our internal website. All the developers use laptops (which'll be off overnight), so I'm consid...

Setting a navigationBar title

I currently have my navigation controllers defined in my appDelegate as followed (code summarized): - (void) applicationDidFinishLaunching { tabBarController = [[UITabBarController alloc] init]; FlagList *flagList = [[FlagList alloc] initWithApiCall:API_PUBLICTIMELINE andTitle:@"Home"]; UITabBarItem *homeTab = [[UITabBarItem a...

Wheel rotates and goes back to starting position iPhone

Hi, I am using float theAngle = atan2( location.y-self.center.y, location.x-self.center.x ); to rotate a wheel at a certain angle. and self.transform = CGAffineTransformMakeRotation(angleRadians); for the transformation to take place. But everytime the user represses the wheel to turn it, it goes back to the original location...

How to get the content height of a UIWebView in iPhone sdk, objective-c?

Hai Guys, I got a problem while lodaing the htmlString into UIWebView, I have set the frame height of a webview in iphone is 265 always. webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 41, 320, 265)]; Is there any property to get content height of a UIWebView. If I got the content only one or two lines then it is lookin...

Multiple Annotations On Mapkit for iPhone

Does anyone know how to display more than one location on a map Using Database? I am trying to drop Multiple Pins on google Map with the help of database but just able to drop last pin ...

Dismissing/Updating Local Notification Programmatically in iPhone sdk4

I am working on an app that runs in the background with the backgroundmode set to location. In the didUpdateToLocation: method, I want to generate local notification. I want the app to show the notification only when previous notification has been viewed. Another option is to show only the latest notification and dismiss all the previous...

switch state in the FlipsideViewController ?

Hello all, in my app i have a switch in the flipsideview when i set it to on all work properly then i touch Done to return to the main view, now when i touch again the info button it appear off till now no problem but if i touch Done button (without touch the switch) it will called the function with off statement my question is how to c...

FMDB SQLite question: row count of a query?

Hiyas does anyone know how to return the count of a query when using FMDB? If I executeQuery @"select count(*) from sometable were..." I get an empty FMResultSet back. How can I get the row count of the query? Do I need to do a query like "select * from sometable where.." and iterate through the result set? Or can I use useCount or what...

How to get the total amount of shared video memory of a graphic card on Mac OSX?

Using e.g. the command line tool and creating a NSDictionary from the output of: system_profiler -xml SPDisplaysDataType it is possible to get to know the amount of video memory. The key spdisplays_vram contains e.g. the string "512 MB". However, on a graphic card with shared video memory only the identifier spdisplays_integrated_vram ...

How do I code one import statement that the entire App recognises

I remember reading somewhere but I cannot remember where exactly I need to write the import statement so that the whole App has access to it. I have a AppHelper class which I want the whole app to see without importing it in every class file. So I have tried to add it to my .pch file but I get the following error messages: "_kGTMHTTPF...

presentModelViewController not working.

Hi friends... I have navigationController in my appdelegate class& passing a viewController(RootViewController) in it. In RootViewController i m using a custom UItableViewCell. In the UITableViewCell class i have a UIButton. on button click i want to navigate to some other page(sampleViewController) so on button click i m using -(void)b...

[iPhone] Convert UIImage to CVPixelBufferRef

Hi @ll I want to convert a UIImage object to a CVPixelBufferRef object, but I have absolutly no idea. And I can't find any example code doing anything like this. Can someone please help me? THX in advance! C YA ...

How to cut out parts of NSString?

I have a lot of strings looking like this: @"/News/some news text/" @"/News/some other news text/" @"/About/Some about text/" @"/Abcdefg/Some abcdefg text/some more abcdefg text" How do I cut out the first part of the strings, so that I end up with the following strings?: @"/News/" @"/News/" @"/About/" @"/Abcdefg/" tia ...

Conditionally populate an array from another array - objectiveC

I want to copy items from an array that are not 0 or @"" (depending if NSNumber or NSString). The following code, however, does not work. What am I doing wrong? for (int i=0; i < [logbookItems count]; i++) { NSLog(@"%@, %@, %@", [[[logbookItems objectAtIndex:i] objectAtIndex:1] class], [[logbookItems objectAtIndex:i] objectAtIndex:0...

Array of custom uitableviews

Hello, I am creating a uiscrollview programmatically populated with multiple uitableviews. The uitableviews need a manual datasource that will change for every instance. I wondered if any of you have some sample code of an array of uitableviews where cells are configured. Thanks in advance for your help! ...

cocos2d particle effects not appearing

Hi All Im just having an issue with particle effects not appearing all the time. Im coding using objective c and cocos2d for the iphone. Below is the code in question. CCParticleExplosion *emitter; emitter = [[CCParticleExplosion alloc] initWithTotalParticles:30]; emitter.texture = [[CCTextureCache sharedTextureCache] addImage:...

NSInvocation not passing pointer to c++ array

Hello, I think I'm making just a fundamental mistake, but I cannot for the life of me see it. I'm calling a method on an Objective-C object from within a C++ class (which is locked). I'm using NSInvocation to prevent me from having to write hundreds methods just to access the data in this other object. These are the steps I'm going t...

how to read soap response with TouchJSON parser

hi every one,i have a problem,i strucked up with this,i have to read data from soap response with TouchJSON (CJSONDeserializer) , i need to avoid Soap blots(Xml tags) and parse JSon String from the soap response can any help for this thx in Advance ...

UINavigationBar leads to Crash..!

APPLICATION : My application has three pages Page A,Page B and Page C. WHAT I DID : I can individually link Page A to Page B and Page A to Page C. PROBLEM: I am not able to link from Page A to C when i come back from B to A. What should I do? Your Suggestion and advise is most welcome. Waiting for ur reply. Thanks ...

flowCover - find out which item is in the centre (being displayed) iPhone

Hi, I am using http://www.chaosinmotion.com/flowcover.m and would like to know how I may display a label for each image when it is displayed in the flowcover (the current image) Thanks, :) ...