-(void)setMedicineList:(NSString*)btnText:(NSString*)kana:(NSString*)skana
{
if(mdcnList != nil)
{
[mdcnList release];
}
mdcnList = [[MedicineList alloc]getMedicineList:btnText:kana:skana]; // Memeory leak
[medListView setMdcnList:mdcnList];
[btnText release];
//[mdcnList release]; // Not work
}
How to r...
Hi all
I want that searchbar should also scroll with scrolling mean when i scroll down searchbar should be visible.
as there anyway to do so...
thanks. and sorry for my bad english..
...
I have the following situation, which seems to cause my iPad application to leak memory.
I have a class with a string property...
@property(nonatomic,retain) NSString * synopsis;
I set the string property from some HTTP response, either from JSON or XML response.
At that point the retain count of the synopsis object is 1.
But I have...
In simple terms I have a view with three buttons;
buttonOne
buttonTwo
checkButtonStatus
if buttonOne is clicked it sets its own selected status to yes and buttonTwo selected status to no.
Clicking buttonTwo does the opposite.
Both buttonOne and buttonTwo by default are not selected.
The third button (checkButtonStatus) should perfor...
I have what I believe is a fairly simple application at the moment based on a few tutorials cobbled together. I'm using XCode 3.2.3 in OSX 10.6.4. It started as a standard iPhone "Window Based Application". Using interface builder I have added a Tab Bar Controller using the O'Reilly video tutorial here:
http://broadcast.oreilly.com/2...
My iPhone application is displaying some odd behavior when run on the iPad with respect to supporting orientation changes.
The app starts up with a view controller (call it view A for the sake of argument) and navigation controller, and shouldAutorotateToInterfaceOrientation is returning YES for portrait only. Onto the navigation contr...
Hi All
I'm able to open a url scheme with my apps. However i can have more that one app with the same
url scheme registered so i would like let user choose the default app for the scheme.
I need to use the same scheme for all my apps. Now by default iphone uses the last app installed that can open the schema.
Have you same idea to s...
Hi,
I am launching a iphone web app that is related to mobile searching. Currently, I am looking for users to test on this app.
What is the best way to get feedback for this app? And get users to my web app?
Thanks.
...
I need to draw a few hundred lines and circles on my view and they keep moving through a timer function, where I call [myView setNeedsDisplay] to update the view.
I subclass (myView) from UIView and implement drawRect function to do the following ...
-(void) drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext(...
I present a UIMenuController over a view to display a copy and paste menu popup. This works great, but recently I added external screen functionality to my app. When I present a view and add it to the external screen I call
...
[extWindow setScreen:extScreen];
[extWindow addSubview:viewController.view];
[extWindow makeKeyAndVisible...
Usually I use gdb backtrace to debug my application, but recently I can no longer do it when testing on iPhone simulator. The blue gdb word stops being displayed on console, and nothing happens when I type "bt" or "backtrace". I can still build and debug properly on the device though.
My XCode version is 3.2.3. Is there any way to manua...
Hello,
I have a ViewController with a number of fields. One of these fields is a text box, I want the user to be able to tap on the text field and be presented with a table view where they can select from a pre-defined list and their selection will then be filled in the text box. Can anyone point me in the direction of a tutorial or som...
Hi,
I'm writing an app in XCode 3.2.3 for iOS 4. In my code, I am creating an NSArray of NSDictionaries, each containing two key/value pairs, a string and an NSArray of NSDictionaries (kind of confusing, I know). Just to give you a visual, here is the structure:
<NSArray>
<NSDictionary>
<NSString/>
<NSArray>
...
Hi together,
I want to make a newspaper on iPhone - in fact a pdf reader. In other magazin/pdf reader apps you can zoom in and text is still shape. How can I do that? With CGPDFDocumentCreateWithURL?
Thx & best :-)
...
I have a method to generate a Deck object (NSObject subclass with an NSMutableArray property) and it populates the array with Card objects (UIView subclass with some integer and one NSString property). When I ask for a Deck I check to see if one already exists (I think) and if so, release it before getting a new one.
The code from my v...
Hi,
It is exasperating but I can't get this code work, first I though it was a mutable/inmutable problem but it doesn't, I believe.
What am I doing wrong? labeledPemString do has contents and the specified characterSet is printing 'ranges begin {0, 26}' . But unlabeledBeginPemString has the same as the original string.
//Get the .pe...
I'm trying to use Dashcode to create a drop-down list for an iPhone Web app. I want the list to be set dynamically based on a data source, and for the selected item to be set by a separate data source.
I've figured-out how to set the parameters on the data source to get it to alter the contents, and have the data in valid JSON, but can'...
Hi, I'm relatively new to Objective-C and am completely new to xAuth. Can somebody show me how or lead me to a tutorial to get a request access token pair and make a request to a URL given username, password, consumer_key, and consumer_secret?
I'm really foggy with this, and I don't even know why I get a access token pair (why two toke...
I want to create a "play" button that has a play image (triangle) and highlights on touch.
I kind-of figured out how to do this, but it's not really right. The frame I create for the button is square, and the entire square button lights up when touched.
Instead, I want only the triangle to get highlighted, similar to how iPod buttons wo...
It seems that in iOS4 the GPS updates are recieved with a 3-5 sec lag compared to the behavior in iPhoneOS3.
e.g I start changing my location and I only receive GPS updates after a few seconds. I stop moving and the location updates only stop coming after a few seconds. (GPS reception at its best. That's not the problem.)
In iPhoneOS...