objective-c

is there any way to solve 'com.apple.product-type.framework' issue?

Hi Guys!, I am trying to implement cover flow effect in my application by using objectiveFlickr project, But it shows "target specifies product type 'com.apple.product-type.framework', but there's no such product type for the 'iphonesimulator' platform" error whenever I am going to be run the application. Note: I have includ...

Question about my logic for Rhythm game/Iphone Cocos2d

Ok I am a complete newbie at game design and have a question. Ive been working on a rhythm game for the iphone for the past few months now. The game runs well and is getting closer to being finished, however, being my first major project I feel like the underlying way I am doing it is very flawed. We are shooting for 60 fps and it run...

how to implement the following style/customize the toolbar in iphone applicaiton?

I want to change my common toolbar style to this style.. http://images.cnblogs.com/cnblogs_com/alexliu/epuber/777.png Transparent toolbar. the round conner at the left and right side. press any of them have the click events. (all of them have already implemented in the old toolbar version.) ...

How to use CVPixelBufferPool in conjunction with AVAssetWriterInputPixelBufferAdaptor in iphone?

Hi Everybody, I have successfully created video from images using the following code -(void)writeImageAsMovie:(NSArray *)array toPath:(NSString*)path size:(CGSize)size duration:(int)duration { NSError *error = nil; AVAssetWriter *videoWriter = [[AVAssetWriter alloc] initWithURL: [NSURL fileURLWithPath:pat...

Parsing XML using libxml2 and Xpath in objective c

Hi, I want to parse an xml file using libxml2 and XPath I have tried to look this up on the internet but I can't find much about it. Can anyone give me a sample code for parsing this xml: <WebServiceResponse> <status>OK</status> <result> <type>sample</type> <name>Sample XML</name> <locati...

Iphone UITabbarController state

Hello All, Any one tell as the UITabbarController have state like selected,highlighted...etc. . Help as soon as possible.Thanks in advance. Regards, ...

Layering UIViews so that bottom most layer can be seen

I have a UIView to which i add a background image. Then to that view i add a scroll view. To the scroll view i add some UIButtons. I would like to be able to set the scroll view to be transparent (still being able to see the UIButtons) so that i can see the background image underneath it, so that it shows between the buttons. I have t...

draw line/point on existing UIView without drawRect?

I created line chart. Now I need to display point on this chart when I tap the screen. What would be the best method? Do I need to call drawRect again, draw whole chart with marked point? I'm thinking about something like transparent layer over the chart UIView. Can I create another transparent UIView and put it on the position of my c...

EXC_BAD_ACCESS - iPhone

Hi My iPhone app is crashing and getting EXC_BAD_ACCESS error when using this code: NSError *error; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); //1 NSString *documentsDirectory = [paths objectAtIndex:0]; //2 NSString *path = [documentsDirectory stringByAppend...

How to debug Crash Logs

Hello All, Any one help me to debug Crash Logs.Thanks in advance. Regards, ...

I got Error while using UITableView as 'setText:' is deprecated

I got Error while using UITableView as 'setText:' is deprecated in line cell.text=cellvalue Please anyone can how to fix this? - (UITableViewCell *)tableView:(UITableView *)atable cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [atable dequeueReusableCellWithId...

UITableView has loaded data

hey everyone, I have a subview where there is an uitableview that gets data from an online server (title, subtitle and image). When I click the button that shows the subview it takes a little time to get there using WiFi connection, but under 3G network it takes longer, so that you really feel the gap between loading the view and having...

Multithreading the pathfinding in a tower defense game

Hi, I'm making a tower defense game and I'm stuck at the multithreading of the pathfinding. If i don't make the pathfinding an NSInvocationOperation then there is an increasing pause in the rendering the more fiends and towers i have. However i cannot solve the "locking" issue. I get frequent crashes about enumerating my fiend NSMutable...

How to restrict the tables in UITableView?

How to restrict the tables in UITableView? i have only 5 cell data. I need to restrict the count of rows to 5... ...

react on push-notifications directly

Is it possible to react directly on a push-notification without waiting for user-input? (I don't mind if i have to use a private framework) Is there any alternative to apples version of push-notification? Can I send polling packages to the iPhone and react to them in background? ...

How to use custom URL scheme to send Get URL event to running application?

My Cocoa application needs to handle Get URL events. I think I correctly followed the steps in this answer to modify Info.plist and write & register a URL handler method. Problems: When I go mytesturl://anything in Safari while my app is running, it pops up a window asking if I want to open my app. And if I say yes, nothing seems to...

How do you make the "more" button of a UITabBarController return to the root view

Hi! I have a UITabBarController which has been created programatically. There are 6 tabs within the tab bar which has forced a more button to appear, which is great and works beautifully! Whilst testing the app, one of the testers raised a point. When they select the more button, then select one of the options in the more menu, the res...

how to use CoreTelephony framework

can any one help me in understanding CoreTelephony framework by telling among any one given below any simple apps example that is using core-telephony framework i am able to add core-telephony framework but not able to import any header file of it although they exist in frameworks that i have added any help will be appreciable as...

CGPointApplyAffineTransform giving negative values

Hi, I have a CGPointApplyAffine which is giving me negative values such as -161 for x and -58 for y. Are these values possible? Or am I using it incorrectly? CGPoint rotatedCenter = CGPointApplyAffineTransform(subview.center, self.transform); Thanks! ...

UIImagePickerController stuck at compressing Video

Hi I've got the image picker working in a popover on the ipad, but when running in the simulator when I select a video in the picker it says its compressing and then gets stuck. Nothing happens, the delegate function never gets called. ...