Hi, I seem to get an Assertion failure with the following code: if (Butten.tag==1) { //int errorCount = 0; //UIImage *filterImage; GPUImageAmatorkaFilter *ColorMatrix=[[GPUImageAmatorkaFilter alloc]init]; [ColorMatrix prepareForImageCapture]; UIImage *filterImage=[ColorMatrix imageByFilteringImage:img_MainImage]; //while (! (filterImage = [ColorMatrix imageByFilteringImage:img_MainImage]) ) { // ++errorCount; //} //if (errorCount > 0) { //NSLog(@"GPUImageiOSBlurFilter imageByFilteringImage button clicked:"); //} vw_MainImage.image=filterImage; image_Edited =filterImage; lbl_MenuType.text=[arr_Effectname objectAtIndex:0]; filterImage=nil; free((__bridge void *)(filterImage)); } Error is: *Assertion failure in -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:removePremultiplication:], /Users/darrenedwards/Desktop/app/Source/iOS/GPUImagePicture.m:94* Line 94 is: NSAssert( widthOfImage > 0 && heightOfImage > 0, @"Passed image must not be empty - it should be at least 1px tall and wide"); I am new to iOS …

Member Avatar
+0 forum 0

Hi. I'm in the process of learning Swift coding and decided to attempt a porting of one of my existing Windows programs. The thing is, that program relies heavily on connecting to a remote MySQL server. I've seen a few attempts to provide various connectors to an assortment of databases, including MySQL. Most solutions say that it can be done using a bridge to Object C, but none really show how. Does anyone here have any experience in connecting a Cocoa/Swift application to a MySQL server (or any remote database at all)?

Member Avatar
Member Avatar
+0 forum 4

I keep getting a direct identifier error. I have tried deleting the pillarPlat004 assets and re-importing it and connecting it to the code, but that doesn't seem to be the problem. I'm using swift in xcode. ![Screenshot_2016-04-09_19.27_.25_.png](/attachments/small/4/1f4a31b4ae5c37226cc4901e500e6fcd.png "align-left") ![Screenshot_2016-04-09_19.31_.50_.png](/attachments/small/4/4d94fd0a79c2f6fa708b11ec67f58885.png "align-left")

Member Avatar
+0 forum 0

Hi all, I've been trying to follow the basic Apple developer tutorial, where you create a food tracker app. I can not get one part of the code to work, and I can't see why. Not only is it exactly the same as in the example, but searches online also seem to enforce that I've done this right... I create 5 UIButton objects with this code: // MARK: Initilisation required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) for _ in 0..<5 { let button = UIButton(frame: CGRect(x: 0, y: 0, width: 44, height: 44)) button.backgroundColor = UIColor.redColor() button.addTarget(self, action: "ratingButtonTapped:", forControlEvents: …

Member Avatar
Member Avatar
+0 forum 1

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if I change it to my plist it crashes. Any help would be greatly appreciated. I posted my code below here. // // ViewController.h // Search // // #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchDisplayDelegate> @end Here is my .m file as well. // // ViewController.m // Search // …

Member Avatar
Member Avatar
+0 forum 1

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if I change it to my plist it crashes. Any help would be greatly appreciated.

Member Avatar
Member Avatar
+0 forum 4

i want to start developing ios apps on my lap (windos) i dont have mac so how can i start

Member Avatar
Member Avatar
+0 forum 2

Hello programmers! I have been working on a hardware store application, where there is a `HardwareRecord`class that stores information about each object in a store (ex: nuts, bolts, screws, and so forth). Here's my declaration of this class: // HardwareRecord.h // Initialize Hardware Store File // // // Definition of HardwareRecord class #ifndef __Initialize_Hardware_Store_File__HardwareRecord__ #define __Initialize_Hardware_Store_File__HardwareRecord__ #include <iostream> class HardwareRecord { public: HardwareRecord(int=0,std::string="",std::string="",double=0.); //constructor explicit HardwareRecord(); HardwareRecord operator=(HardwareRecord&); //'set' and 'get' functions void setAccountNumber(int); int getAccountNumber() const; void setName(std::string); std::string getName() const; void setPrice(double); double getPrice() const; void setDescription(std::string); std::string getDescription() const; void wipeRecord(); //set everything to blank private: int …

Member Avatar
Member Avatar
+0 forum 33

I have a c++ file in xcode that I want to import to netbeans the problem is the c++ file is lacking some files which netbeans requires in order to open that up in netbeans(e.g makefile) How do I do that?

Member Avatar
Member Avatar
+0 forum 1

I want to make a Cocoa applictation using all code in Xcode, not using the Interface Builder. I have searched a lot on this and have not found anything since most people want to use the Interface Builder. Please don't say anything like "Don't waist your time on it", "They did the work for you, why do it yourself?", etc., like most people. When I make applications, I like to use all code. So, can you explain how to do this or post a link? Thank you very much for your help! I had this in C++, which was the …

Member Avatar
Member Avatar
+0 forum 1

Hi , i would like to include a normal conventiional function in to my obcetive c project. I have tried putting the body of the function outside the implementation section , inside the @implemenation section. I know it wont be part of the class i'm defining , but do i have to declare it somewhere in aheader file. i just get build errors An example(or link to a an example) would be brilliant . i just dont know how you do it???.please help !!

Member Avatar
Member Avatar
+0 forum 1

So I'm making a IOS game and when I try testing my game in xcode simulator I get these errors below. Anyone have an idea what's wrong. Btw the behaivor is for unlocking new levels if actor collides with an object: Error in line 49: invalid operands of types 'objc_object*' and 'float' to binary Error in line 58: invalid operands of types 'objc_object*' and 'float' to binary Error in line 73 :iso c++ forbids comparison between pointer and integer Here is the IOS code: Line 49: ` if(([mActor touchedActor] && ([self getGameAttribute:@"Highest Level Completed"] >= [self asNumber:[NSNumber numberWithFloat:_levelnumber]])))` Line 58: …

Member Avatar
Member Avatar
+0 forum 1

What I am trying to find out is how to securely send a username and password to an API. Basically I am accessing a restful API using a URL like "https://myapi.com/api/username=test&password=test123". If the username and password are correct the API will return a JSON page. How would I go about sending the information securely to the API URL?

Member Avatar
Member Avatar
+0 forum 3

So, I am having some trouble getting my alertView to actually perform an action on a certain button click. Here is the code I have so far and I hope someone can help me debug this issue and get this working! Thanks in advanced! ViewController.h // // ViewController.h // IMWT360 // // Created by Chris Harris on 1/22/13. // Copyright (c) 2013 InModWeTrust360. All rights reserved. // #import <UIKit/UIKit.h> #import <iAd/iAd.h> @interface ViewController : UIViewController <ADBannerViewDelegate> @property (nonatomic, retain) IBOutlet ADBannerView *aBanner; @property (nonatomic, assign) BOOL bannerIsVisible; - (IBAction)myVideos:(id)sender; - (IBAction)myFacebook:(id)sender; - (IBAction)myTwitter:(id)sender; - (IBAction)myInstagram:(id)sender; - (IBAction)myWebsite:(id)sender; - (IBAction)myAbout:(id)sender; - …

Member Avatar
+0 forum 0

I'm almost finished coding the last of my C program on stock inventory but in the last two functions (one being my main function and the other a void function) the compiler gives an error stating that there a Parse Issue and that an expected identifier or "(" is missing in main.c .. I've already opened and closed my functions with '{, }' and this errpr doesnt exist in my other functions any idea on what the error could be?

Member Avatar
Member Avatar
+0 forum 9

I'm coding an inventory program in C and I need the variable "stock1" in more than two seperate functions I'm not sure as to how they're supposed to be manipulated and read by the seperate functions nor do I understand how to declare them If I declare them as global variables then I'm almost certain that they won't be manipulated by the seperate functions. Anyway I can declare them so that I can change the values IN the separate functions? (is it the use of a pointer?)

Member Avatar
Member Avatar
+0 forum 10

These days im using xcode and its a bit of annoyingly good amounts of changes from borland which im used to But i keep getting error for this printf ("\nThe amount of First Class cars Stocks remaining are: %d", &stock1); (while stock1 is declared: int stock1) and it says format types specifies type "int" but argument has type "int*" i dont understand what this means.. is a pointer being used at int? the more puzzling thing for me is that when i take out the "&" for some parts of the code: fprintf (Stocks,"\nThe amount of First Class Stocks remaining …

Member Avatar
Member Avatar
+0 forum 8

There is a small problem i have there is a small error that i didnt use to have with the boorland compiler I'm using xcode these days and in my switch case im trying to execute a function (as you can see, the "main" function) however it says that it is an implicit declaration of function "main" and that it is invalid in C99 i cant begin to understand this error:( in boorland i had a few problems but it still ran but i dont understand this error by the way although the function "main" is the last function it …

Member Avatar
Member Avatar
+0 forum 3

How can I get this [code](http://www.mediafire.com/?o3kg3nii2sfoigh) to work? I am using xcode 4.5. Thanks

Member Avatar
Member Avatar
+0 forum 4

I'm experiencing a problem with regards to this. I need somebody's help. :(

Member Avatar
Member Avatar
+0 forum 5

Hello guys. I am a starter in Java Programming. And I wanted to understand and manipulate it effectively from now on. I also want to start developing applications in iPad or iPhone but I am a Windows user, and I guess I need a Mac in able to do that. Can anyone give me some points about Java? Why isit that in our school, we are using a DOS mode in Java while everything that saw in the internet introduces Java as OOP? and they're not in DOS mode either... I'm confuse. How can I install xCode in my Windows? …

Member Avatar
Member Avatar
+0 forum 4

I have my app running with 2 annotations for now. They are hardcoded in with latitude and longitude. How do I make it so that I let the user add annotations by dropping a pin where they wish and for my app to recognize this and save where they drop it? I believe that this is accomplishable by having a btn that when pressed creates a new instance of the annotation pin with draggable properties listed as MyPin.draggable = YES; My question is: how and where do I code the class so that the new instance can be created when …

Member Avatar
+0 forum 0

In my table view cell i need to display the contents of my array elements in a single cell and if i insert any new contents the previous contents are not to be overwritten.The previous content and my new content should be displayed in order.Here is my code #import "Carttable.h" @interface Carttable () @end @implementation Carttable @synthesize cnfqty,cnfrate,cnfimage,cnftitle,finarray; - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; // Uncomment the following line to preserve selection between presentations. // self.clearsSelectionOnViewWillAppear = NO; // Uncomment the following line to …

Member Avatar
+0 forum 0

Hi, I just experienced this issue after upgrading Xcode to 4.3.3, and thought the fix might be useful to others. The original fix is posted [here](https://devforums.apple.com/thread/141685) and modified [here](http://stackoverflow.com/questions/9325804/xcode-4-3-organizer-crash). Create the file readcert.m with the following code: #import <Security/Security.h> #import <Foundation/Foundation.h> void checkCerts () { OSStatus status; const void *keys[] = { kSecClass, kSecReturnRef, kSecMatchLimit }; const void *values[] = { kSecClassCertificate, kCFBooleanTrue, kSecMatchLimitAll }; CFDictionaryRef query = CFDictionaryCreate(NULL, keys, values, 3, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFArrayRef results; if ((status = SecItemCopyMatching((CFDictionaryRef) query, (CFTypeRef *)&results)) != noErr) { NSLog(@"Failed to copy certificates: %d", status); return; } CFIndex count = CFArrayGetCount(results); CFIndex i; …

Member Avatar
+1 forum 0

I'm having trouble opening a file using fopen in C++. I'm using XCode 4. Here's my code: FILE *f; f = fopen("test.txt", "r"); if (f == NULL) std::cout << "Error: NULL file"; When I run this, the error message gets printed. test.txt is stored in the same directory as my XCode project. I just want to be able to read from test.txt hence the "r." Any tips? Thanks.

Member Avatar
Member Avatar
+0 forum 2

This is probably a really simple and stupid question, but when I try to "Build and Run" an OpenGL program on XCode, it seems to debug it and open the window for a split second and then close. There aren't any compilation errors and it finishes saying that the debugging ended normally. I even tried changing the active configuration to release, but that didn't change anything. Is there something really obvious that I'm missing when I try to run a program? Sorry, I'm new at XCode.

Member Avatar
Member Avatar
+0 forum 3

Does anyone know how to resolve this other than a complete reboot? I'm restarting both my work desktop and personal laptop on an almost daily basis, which is irritating, to put it politely: **Couldn't register com.your.App with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.** Thanks, Matt

Member Avatar
+0 forum 0

Hi, I am having problem in installing xcode.let me tell you the problem clearly, At first i have installed mac os 10.6.4 on intel desktop(hacked version) and then it installed xcode 3.2.1 with ios,and it worked fine without any problem everything was working properly such as audio,video,internet,xcode,simulator everything was worked fine.Due to some presonal problem i removed mac and installed windows and after some days i again removed windows and installed mac os it installed properly and running fine and perfect and when i install xcode and ios it is showing software manufacturing problem and showing error.I used the same …

Member Avatar
+0 forum 0

I'm receiving this error when I'm trying to run my program: Program received signal: “EXC_BAD_ACCESS”. Does anyone know what this means?

Member Avatar
Member Avatar
+0 forum 7

Hello I previously created an iPhone app that displayed the top trending topics on Twitter. The user could drill down into the tweets about that topic before selecting an individual tweet that would launch the twitter page for that tweet displayed in an in app webpage. However Twitter has recently changed the trends API to incorporate Yahoo's Where On Earth ID (WOEID) and although I have updated the URL to the new JSON file, when I run the app in the simulator the table is empty. Any ideas why this is? Could it perhaps be because of the new JSON …

Member Avatar
+0 forum 0

The End.