How can I remove the present view when I touched the close button.
I did [self.view removeFromSuperView] when I added only one subView. It worked. But, I have now added another subView to the previous subView. I need to to get the parent view . How can I do it. My code of adding the subView is here. When I did the following only one view is…
I have created 5 NSDictionary's. I stored them in NSArray. I need to get the values stored in NSDictionaries. How can do it ?
I tried calling [[array objectAtIndex:i]objectForKey:key1].
But, it is crashing by giving the message:unrecognized selector sent to instance
How to get the data ?
I am writing a game in cocos2d. I am using a function restartDirector in AppDelegate class.
-(void)restartDirector{
[[CCDirector sharedDirector] end];
[[CCDirector sharedDirector] release];
if( ! [CCDirector setDirectorType:CCDirectorTypeDisplayLink] )
[CCDirector setDirectorType:CCDirectorTypeDefault];
[[CCDirector sharedDirector]…
I have a UITextView *textView in cocos2d's CCLayer. The text is scrolling in both the horizontal and vertical directions. But, I need it to scroll and bounce only in vertically.
How to stop the horizontal scrolling programmatically ?
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(100,200,…
I have a doubt in context switching.
In multi threading, when the context switching occurs, what will be the time between two context switches? Is it fixed time interval?
Hi,
I need to display some text in cocos2d layer. I added UITextView to it. I added the text in the text View. But, for setting the font by ( UIFont class), I could not do it. I saw the list of supported fonts for iPhone, In that list Copperplate Gothic Bold is not there. I downloaded it from net. It is…
Many people are saying that Apple has restricted it for better performance. If so Apple should increase the size of RAM to support multitasking. So Apple is not allowing it.
Others say that Cocoa Touch applications can't be multitasking as the iPhone has only one window and views on it.
I can not…
Hi,
In my iPhone application I need a scrolling text.
I had the text to be displayed and scrolled up and down but I could not get customized text.
I mean all the text is of same font. I need some different font size text .
I am using UITextView, but UITextView do not support customized text in it. …
Hi....I need to prepare proof-of-concept for a silverlight application. For that I need to load PPT in silverlight. I just need to load PPT in browser and allow the user to perform next, previous, stop and pause actions. Anybody can help out.
I have UITableView. I customized the cell height (increased).
I have 4 labels(UILabel) and 1 image(UIImage) and 3 buttons (UIButton). one of the button is delete button. By touching the cell or button(play button) on the image a video is loaded and played.
I need to delete the cell by touching…
I have a text field where the user enters a number, which is in the range of thousands.
I want the text field to be formatted as the user enters the number, example :
200000 should become 200,000.
how do i go about doing this??
Many Thanks,
S
In this program when I debug, it is showing the nil for fileNameString. I could not understand what is the problem. Please help me ?
@implementation fromFileRead1
NSString *fileNameString;
-(id)init
{
if( (self = [super init]) )
{
fileNameString = [[NSString alloc]…
I have data stored in two dimensional array. I want it to send in to a function in this way,
I have written the following in another class.
//
do
if( array[iTemp][1] != 10 )
{
Enemy *enemyXX = [[Enemy alloc] init];
[enemyXX EnemyXXTarget: array[iTemp][1]];
iTemp++;
}while(…
hi all,
is it possible to write database methods in properties file, like some database queries and can be accessed using servlets which may reduce the code?
please any body help
I'm using Hibernate3.2+Websphere6.0+struts1.3..
After deploying ,application works fine.
After some idle time ,i will get this type of error repeatedly,am not able to login at all.
Im not using any connection pooling. i feel after idle time its not able to connect to the database…
This is my program
- (void)viewDidLoad {
[super viewDidLoad];
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
self.title = @"Library";
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]…
Hi....I need to prepare proof-of-concept for a silverlight application. For that I need to load PDF in silverlight. I just need to load PDF in browser and allow the user to perform next, previous, stop and pause actions. Anybody can help out.
Has anyone tried coding in managed C++? I have a few questions :
How productive is the language compared to C#?
Is there any restriction on type of projects that can be written? Can we write a web application in managed C++?
Is it possible to mix managed and unmanaged C++…
Hello,
I got problem in cocos2D application.
I have a sprite and text in one screen. The text should be able to move up/down when we swipe. And when we select on the sprite it should take to next scene. So, both should have the istouchEnabled to YES. But text should take the…
I am writing an app in using cocos2d. This method I have written for the selector goToFirstScreen: . The view is in landscape mode. I need to send an email. So, I need to launch the MFMailComposeViewController. I need it in portrait mode.
But, the control is not…
Hi all,
I have this code:
I need to replace 800px and 300px from database value;
I tried both of the below. But still i am not getting the answer.
Method 1:
<div id="container" style="width:'<% Response.Write(width);%>'px; height:'<%…
Can we access the integer type variables in classB which are declared in classA by not using extern?
For objects I used ClassA *obj1 = [[ClassA alloc]init]; And accessed the objects of classA into class B.
But, I am not able to do them with the int…